Browse Source

Pass compiler onto YAML

enhancement_3
Trevor Irons 8 years ago
parent
commit
c44da6b768
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      CMakeLists.txt

+ 2
- 1
CMakeLists.txt View File

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
 

Loading…
Cancel
Save