From dba223eb18df9f7ebbba2e449cfdbd2c5f295576 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Sun, 18 Apr 2021 00:41:29 -0500 Subject: [PATCH] cmake: override yaml-cpp settings to clear warning --- cmake/SearchForStuff.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/SearchForStuff.cmake b/cmake/SearchForStuff.cmake index 301aeed596..2cffa28a8f 100644 --- a/cmake/SearchForStuff.cmake +++ b/cmake/SearchForStuff.cmake @@ -216,6 +216,8 @@ if(NOT USE_SYSTEM_YAML) if(EXISTS "${CMAKE_SOURCE_DIR}/3rdparty/yaml-cpp/yaml-cpp/CMakeLists.txt") message(STATUS "Using bundled yaml-cpp") add_subdirectory(3rdparty/yaml-cpp/yaml-cpp EXCLUDE_FROM_ALL) + # Remove once https://github.com/jbeder/yaml-cpp/pull/815 is merged + target_compile_options(yaml-cpp PRIVATE -Wno-shadow) else() message(FATAL_ERROR "No bundled yaml-cpp was found") endif()