CMake - use ${CMAKE_CURRENT_SOURCE_DIR} instead of ${CMAKE_SOURCE_DIR}
waj334 opened this issue · comments
Justin Wilson commented
I changed line 44 in CMakeLists.txt to:
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/jconfig.h.in ${CMAKE_CURRENT_SOURCE_DIR}/jconfig.h)
Otherwise, it'll look for the .in file in the wrong directory when added as a subdirectory.
Steffen Ohrendorf commented
Thanks for reporting, and also for being the first person reporting an issue in one of my projects ;)