浏览代码

Pass compiler onto YAML

enhancement_3
Trevor Irons 8 年前
父节点
当前提交
c44da6b768
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      CMakeLists.txt

+ 2
- 1
CMakeLists.txt 查看文件

70
 	UPDATE_COMMAND ""
70
 	UPDATE_COMMAND ""
71
 	PATCH_COMMAND ""
71
 	PATCH_COMMAND ""
72
     PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/yaml-cpp
72
     PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/yaml-cpp
73
-    CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX} -DBUILD_SHARED_LIBS=ON -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
73
+    CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX} -DBUILD_SHARED_LIBS=ON -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} /
74
+		-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
74
 )
75
 )
75
 add_compile_options(-DHAVE_YAMLCPP) 
76
 add_compile_options(-DHAVE_YAMLCPP) 
76
 
77
 

正在加载...
取消
保存