mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-23 23:48:22 +02:00
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/37824 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
22 lines
822 B
Diff
22 lines
822 B
Diff
--- a/test/CMakeLists.txt
|
|
+++ b/test/CMakeLists.txt
|
|
@@ -12,7 +12,7 @@
|
|
check_cxx_compiler_flag(/std:c++latest HAS_CPPLATEST_FLAG)
|
|
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
|
|
set(CMAKE_VERBOSE_MAKEFILE ON)
|
|
- set(OPTIONS -Wall -Wextra -Wshadow -pedantic-errors -Werror)
|
|
+ set(OPTIONS -Wall -Wextra)
|
|
|
|
check_cxx_compiler_flag(-std=c++20 HAS_CPP20_FLAG)
|
|
check_cxx_compiler_flag(-std=c++23 HAS_CPP23_FLAG)
|
|
--- a/example/CMakeLists.txt
|
|
+++ b/example/CMakeLists.txt
|
|
@@ -2,7 +2,7 @@
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
|
|
- set(OPTIONS -Wall -Wextra -Wshadow -pedantic-errors -Werror)
|
|
+ set(OPTIONS -Wall -Wextra)
|
|
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
|
set(OPTIONS /W4 /WX)
|
|
if(HAS_PERMISSIVE_FLAG)
|