We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb86cfe commit 613989fCopy full SHA for 613989f
libs/EXTERNAL/CMakeLists.txt
@@ -13,8 +13,14 @@ add_subdirectory(libblifparse)
13
add_subdirectory(libtatum)
14
add_subdirectory(libcatch2)
15
16
-set_directory_properties(PROPERTIES COMPILE_OPTIONS "-Wno-switch-default")
17
add_subdirectory(yaml-cpp)
+# Treat yaml-cpp headers as system headers to suppress warnings
18
+if(TARGET yaml-cpp)
19
+ get_target_property(YAML_INCLUDE_DIRS yaml-cpp INTERFACE_INCLUDE_DIRECTORIES)
20
+ set_target_properties(yaml-cpp PROPERTIES
21
+ INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${YAML_INCLUDE_DIRS}"
22
+ )
23
+endif()
24
25
#add_subdirectory(parmys)
26
0 commit comments