Browse Source

MSVC compiles in Release Mode, pass build type through yaml-cpp

lagkey
John Daily 6 years ago
parent
commit
03a55c6c99
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      CMake/SuperBuild.cmake

+ 2
- 1
CMake/SuperBuild.cmake View File

@@ -45,7 +45,8 @@ else()
45 45
 		PATCH_COMMAND ""
46 46
     	PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/yaml-cpp
47 47
     	CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX} 
48
-                   -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} 
48
+                   -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
49
+                   -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} 
49 50
     	           -DYAML_CPP_BUILD_TESTS=OFF
50 51
                    -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE} 
51 52
 		#INSTALL_COMMAND ""

Loading…
Cancel
Save