Skip to content

Commit c2c620d

Browse files
committed
Fix passing from command line
1 parent 0688e19 commit c2c620d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" CACHE PATH "Library
101101
set(CMAKE_PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE PATH "PDB (MSVC debug symbol)output dir.")
102102
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE PATH "Executable/dll output dir.")
103103

104-
set(JSONCPP_USE_SECURE_MEMORY "0" CACHE STRING "-D...=1 to use memory-wiping allocator for STL")
104+
if(JSONCPP_USE_SECURE_MEMORY)
105+
add_definitions("-DJSONCPP_USE_SECURE_MEMORY=1")
106+
endif()
105107

106108
configure_file("${PROJECT_SOURCE_DIR}/version.in"
107109
"${PROJECT_BINARY_DIR}/version"

0 commit comments

Comments
 (0)