stohrendorf / libjpeg-cmake

libjpeg with cmake build system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CMake - use ${CMAKE_CURRENT_SOURCE_DIR} instead of ${CMAKE_SOURCE_DIR}

waj334 opened this issue · comments

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.

Thanks for reporting, and also for being the first person reporting an issue in one of my projects ;)