include (CheckCXXCompilerFlag) include (CheckCCompilerFlag) # Set/unset variable based on existence of compiler flags. Example: # check_cxx_compiler_flag("-Wreserved-identifier" HAS_RESERVED_IDENTIFIER)