"...composable_kernel_rocm.git" did not exist on "5872b710df80d0ebb85b8ea7d289a1f705ee4afb"
Unverified Commit c86a9e42 authored by Baruch's avatar Baruch Committed by GitHub
Browse files

Minimize warnings when not the top-level project (#1124)

Minimize warnings when not the top-level project

Should fix #970 and #764 when trying to add yaml-cpp to other project
parent 255bf1f9
...@@ -106,11 +106,15 @@ if (NOT DEFINED CMAKE_CXX_STANDARD) ...@@ -106,11 +106,15 @@ if (NOT DEFINED CMAKE_CXX_STANDARD)
CXX_STANDARD 11) CXX_STANDARD 11)
endif() endif()
if(YAML_CPP_MAIN_PROJECT)
target_compile_options(yaml-cpp
PRIVATE
$<${not-msvc}:-Wall -Wextra -Wshadow -Weffc++ -Wno-long-long>
$<${not-msvc}:-pedantic -pedantic-errors>)
endif()
target_compile_options(yaml-cpp target_compile_options(yaml-cpp
PRIVATE PRIVATE
$<${not-msvc}:-Wall -Wextra -Wshadow -Weffc++ -Wno-long-long>
$<${not-msvc}:-pedantic -pedantic-errors>
$<$<AND:${backport-msvc-runtime},${msvc-rt-mtd-static}>:-MTd> $<$<AND:${backport-msvc-runtime},${msvc-rt-mtd-static}>:-MTd>
$<$<AND:${backport-msvc-runtime},${msvc-rt-mt-static}>:-MT> $<$<AND:${backport-msvc-runtime},${msvc-rt-mt-static}>:-MT>
$<$<AND:${backport-msvc-runtime},${msvc-rt-mtd-dll}>:-MDd> $<$<AND:${backport-msvc-runtime},${msvc-rt-mtd-dll}>:-MDd>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment