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 255bf1f commit c86a9e4Copy full SHA for c86a9e4
CMakeLists.txt
@@ -106,11 +106,15 @@ if (NOT DEFINED CMAKE_CXX_STANDARD)
106
CXX_STANDARD 11)
107
endif()
108
109
+if(YAML_CPP_MAIN_PROJECT)
110
+ target_compile_options(yaml-cpp
111
+ PRIVATE
112
+ $<${not-msvc}:-Wall -Wextra -Wshadow -Weffc++ -Wno-long-long>
113
+ $<${not-msvc}:-pedantic -pedantic-errors>)
114
+endif()
115
+
116
target_compile_options(yaml-cpp
117
PRIVATE
- $<${not-msvc}:-Wall -Wextra -Wshadow -Weffc++ -Wno-long-long>
- $<${not-msvc}:-pedantic -pedantic-errors>
-
118
$<$<AND:${backport-msvc-runtime},${msvc-rt-mtd-static}>:-MTd>
119
$<$<AND:${backport-msvc-runtime},${msvc-rt-mt-static}>:-MT>
120
$<$<AND:${backport-msvc-runtime},${msvc-rt-mtd-dll}>:-MDd>
0 commit comments