File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ if(NOT yaml-cpp_FOUND)
7
7
GIT_TAG 0.8.0
8
8
)
9
9
10
+ # Turn off additional tool in yaml-cpp
11
+ # We change the standard of yaml-cpp. Without this, we will need to change the standard of tool targets additionally.
12
+ set (YAML_CPP_BUILD_TOOLS OFF CACHE INTERNAL "" )
13
+
10
14
FetchContent_MakeAvailable(yaml-cpp)
11
15
# make sure the tests DLLs are placed in the working path for CTest
12
16
set_target_properties (
@@ -16,6 +20,10 @@ if(NOT yaml-cpp_FOUND)
16
20
ARCHIVE_OUTPUT_DIRECTORY "${GINKGO_LIBRARY_PATH} "
17
21
LIBRARY_OUTPUT_DIRECTORY "${GINKGO_LIBRARY_PATH} "
18
22
)
23
+
24
+ # The default standard c++11, which introduces an issue on dpcpp compiler.
25
+ # We set the default to c++17 as Ginkgo
26
+ set_target_properties (yaml-cpp PROPERTIES CXX_STANDARD 17)
19
27
endif ()
20
28
ginkgo_create_test(json_config ADDITIONAL_LIBRARIES nlohmann_json::nlohmann_json)
21
29
ginkgo_create_test(yaml_config ADDITIONAL_LIBRARIES yaml-cpp::yaml-cpp)
You can’t perform that action at this time.
0 commit comments