diff --git a/CMakeLists.txt b/CMakeLists.txt index 33abe8542..e18c89b74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,10 +70,10 @@ SET( JSONCPP_USE_SECURE_MEMORY "0" CACHE STRING "-D...=1 to use memory-wiping al MESSAGE(STATUS "JsonCpp Version: ${JSONCPP_VERSION_MAJOR}.${JSONCPP_VERSION_MINOR}.${JSONCPP_VERSION_PATCH}") # File version.h is only regenerated on CMake configure step CONFIGURE_FILE( "${PROJECT_SOURCE_DIR}/src/lib_json/version.h.in" - "${PROJECT_SOURCE_DIR}/include/json/version.h" + "${PROJECT_BINARY_DIR}/include/json/version.h" NEWLINE_STYLE UNIX ) CONFIGURE_FILE( "${PROJECT_SOURCE_DIR}/version.in" - "${PROJECT_SOURCE_DIR}/version" + "${PROJECT_BINARY_DIR}/version" NEWLINE_STYLE UNIX ) MACRO(UseCompilationWarningAsError)