suppress check compiler flag messages

This commit is contained in:
olszomal 2022-07-29 15:54:39 +02:00 committed by Michał Trojnara
parent 5bf24b34a2
commit a12b5c0951

View File

@ -1,5 +1,7 @@
include(CheckCCompilerFlag) include(CheckCCompilerFlag)
set(CMAKE_REQUIRED_QUIET ON)
function(add_debug_flag_if_supported flagname targets) function(add_debug_flag_if_supported flagname targets)
check_c_compiler_flag("${flagname}" HAVE_FLAG_${flagname}) check_c_compiler_flag("${flagname}" HAVE_FLAG_${flagname})
if (HAVE_FLAG_${flagname}) if (HAVE_FLAG_${flagname})