blob: 2cfb1aca9e668af9320d7c5b6d566e6f5fa043b9 [file] [log] [blame]
include(CheckCXXCompilerFlag)
macro(append_cxx_flags_if_supported VAR)
foreach(FLAG ${ARGN})
check_cxx_compiler_flag(${FLAG} HAS_FLAG${FLAG})
if(${HAS_FLAG${FLAG}})
list(APPEND ${VAR} ${FLAG})
endif()
endforeach()
endmacro()