Visual Studio 2017 build-time (linking) fix and improvements

This commit is contained in:
Christian Parpart
2018-09-12 18:56:48 +02:00
committed by chriseth
parent 1a5f90954a
commit 72b9ad6837
3 changed files with 4 additions and 14 deletions
+1 -3
View File
@@ -35,9 +35,7 @@ ExternalProject_Add(jsoncpp-project
-DJSONCPP_WITH_TESTS=OFF
-DJSONCPP_WITH_PKGCONFIG_SUPPORT=OFF
-DCMAKE_CXX_FLAGS=${JSONCPP_EXTRA_FLAGS}
# Overwrite build and install commands to force Release build on MSVC.
BUILD_COMMAND cmake --build <BINARY_DIR> --config Release
INSTALL_COMMAND cmake --build <BINARY_DIR> --config Release --target install
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
${byproducts}
)