From c225cda9571fe08b8b5c55cb01f817f64a62fb3e Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Mon, 4 Dec 2023 10:42:17 +0100 Subject: [PATCH] CMake: fix cxx flag check (#2225) Fixes #2224 --- src/CMakeLists.template.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.template.cmake b/src/CMakeLists.template.cmake index 320997b2ed..572efede80 100644 --- a/src/CMakeLists.template.cmake +++ b/src/CMakeLists.template.cmake @@ -20,7 +20,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") endif() foreach(flag ${MY_CXX_FLAGS}) unset(CUR_FLAG_SUPPORTED CACHE) - check_cxx_compiler_flag(-Werror ${flag} CUR_FLAG_SUPPORTED) + check_cxx_compiler_flag(${flag} CUR_FLAG_SUPPORTED) if(${CUR_FLAG_SUPPORTED}) string(APPEND CMAKE_CXX_FLAGS " ${flag}") endif()