瀏覽代碼

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

lagkey
John Daily 6 年之前
父節點
當前提交
03a55c6c99
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      CMake/SuperBuild.cmake

+ 2
- 1
CMake/SuperBuild.cmake 查看文件

@@ -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…
取消
儲存