diff --git a/cmake/Libraries.cmake b/cmake/Libraries.cmake index e75b0b8dd..4c7cbf653 100644 --- a/cmake/Libraries.cmake +++ b/cmake/Libraries.cmake @@ -163,7 +163,8 @@ macro(configure_unix_libs) # Unix only: For config.h, save the results based on a template (config.h.in). # Note that this won't work on Windows because filenames are not case sensitive, # and we have header files named "Config.h" (upper case 'C'). - configure_file(res/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/src/lib/config.h) + configure_file(${CMAKE_SOURCE_DIR}/src/lib/config.h.in + ${CMAKE_BINARY_DIR}/src/lib/config.h) add_definitions(-DSYSAPI_UNIX=1 -DHAVE_CONFIG_H) diff --git a/res/config.h.in b/src/lib/config.h.in similarity index 100% rename from res/config.h.in rename to src/lib/config.h.in