Skip to content

Commit 323450e

Browse files
author
Tomáš Malý
committed
allow out-of-source build
1 parent af17fec commit 323450e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ SET( JSONCPP_USE_SECURE_MEMORY "0" CACHE STRING "-D...=1 to use memory-wiping al
7070
MESSAGE(STATUS "JsonCpp Version: ${JSONCPP_VERSION_MAJOR}.${JSONCPP_VERSION_MINOR}.${JSONCPP_VERSION_PATCH}")
7171
# File version.h is only regenerated on CMake configure step
7272
CONFIGURE_FILE( "${PROJECT_SOURCE_DIR}/src/lib_json/version.h.in"
73-
"${PROJECT_SOURCE_DIR}/include/json/version.h"
73+
"${PROJECT_BINARY_DIR}/include/json/version.h"
7474
NEWLINE_STYLE UNIX )
7575
CONFIGURE_FILE( "${PROJECT_SOURCE_DIR}/version.in"
76-
"${PROJECT_SOURCE_DIR}/version"
76+
"${PROJECT_BINARY_DIR}/version"
7777
NEWLINE_STYLE UNIX )
7878

7979
MACRO(UseCompilationWarningAsError)

0 commit comments

Comments
 (0)