From 95265de0cd75d880e99a8c3635c002fe559a1f25 Mon Sep 17 00:00:00 2001 From: Jason Beach Date: Thu, 15 Jul 2021 14:58:30 -0400 Subject: [PATCH] fix g++ warning about returning a reference --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b43a80..4c613cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,7 +99,8 @@ endif() target_compile_options(yaml-cpp PRIVATE - $<${not-msvc}:-Wall -Wextra -Wshadow -Weffc++ -Wno-long-long> + $<${not-msvc}:-Wall -Wextra -Wshadow -Wno-long-long> + $<$:-Weffc++> $<${not-msvc}:-pedantic -pedantic-errors> $<$:-MTd>