Bladeren bron

Pass compiler onto YAML

enhancement_3
Trevor Irons 8 jaren geleden
bovenliggende
commit
c44da6b768
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2
    1
      CMakeLists.txt

+ 2
- 1
CMakeLists.txt Bestand weergeven

@@ -70,7 +70,8 @@ ExternalProject_Add(YAML-CPP
70 70
 	UPDATE_COMMAND ""
71 71
 	PATCH_COMMAND ""
72 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 76
 add_compile_options(-DHAVE_YAMLCPP) 
76 77
 

Laden…
Annuleren
Opslaan