cmake check_compiler_flag() examples

dscharrer/innoextract cmake/BuildType.cmake :323

check_compiler_flag(FLAG_FOUND "-Wmaybe-uninitialized")

dscharrer/innoextract cmake/BuildType.cmake :415

check_compiler_flag(RESULT "-g3")

dscharrer/innoextract cmake/BuildType.cmake :422

check_compiler_flag(RESULT "-Og")

dscharrer/innoextract cmake/BuildType.cmake :424

check_compiler_flag(RESULT "-O0")

dscharrer/innoextract cmake/CompileCheck.cmake :167

check_compiler_flag(RESULT "${FLAG}")

dscharrer/innoextract cmake/CXXVersionCheck.cmake :62

check_compiler_flag(FLAG_FOUND "-std=c++03")

dscharrer/innoextract cmake/CXXVersionCheck.cmake :64

check_compiler_flag(FLAG_FOUND "-std=c++98")

libical/libical cmake/modules/openssf-c.cmake :16

check_compiler_flag(C "-Wall" C_SUPPORTS_WALL)

libical/libical cmake/modules/openssf-c.cmake :20

check_compiler_flag(C "-Wextra" C_SUPPORTS_WEXTRA)

libical/libical cmake/modules/openssf-c.cmake :24

check_compiler_flag(C "-Wformat" C_SUPPORTS_WFORMAT)

libical/libical cmake/modules/openssf-c.cmake :28

check_compiler_flag(C "-Wformat=2" C_SUPPORTS_WFORMAT2)

libical/libical cmake/modules/openssf-c.cmake :32

#check_compiler_flag(C "-Wconversion" C_SUPPORTS_WCONVERSION)

libical/libical cmake/modules/openssf-c.cmake :36

check_compiler_flag(C "-Wsign-conversion" C_SUPPORTS_WSIGNCONVERSION)

libical/libical cmake/modules/openssf-c.cmake :40

check_compiler_flag(C "-Wtrampolines" C_SUPPORTS_WTRAMPOLINES)

libical/libical cmake/modules/openssf-c.cmake :44

check_compiler_flag(C "-Wimplicit-fallthrough" C_SUPPORTS_WIMPLICIT_FALLTHROUGH)

libical/libical cmake/modules/openssf-c.cmake :48

check_compiler_flag(C "-Wbidi-chars=any" C_SUPPORTS_WBIDI_CHARS_ANY)

libical/libical cmake/modules/openssf-c.cmake :52

check_compiler_flag(C "-Werror=format-security" C_SUPPORTS_WERROR_FORMAT_SECURITY)

libical/libical cmake/modules/openssf-c.cmake :56

check_compiler_flag(C "-Werror=implicit" C_SUPPORTS_WERROR_IMPLICIT)

libical/libical cmake/modules/openssf-c.cmake :60

check_compiler_flag(C "-Werror=incompatible-pointer-types" C_SUPPORTS_WERROR_INCOMPATIBLE_POINTER_TYPES)

libical/libical cmake/modules/openssf-c.cmake :64

check_compiler_flag(C "-Werror=int-conversion" C_SUPPORTS_WERROR_INT_CONVERSION)

libical/libical cmake/modules/openssf-c.cmake :69

#check_compiler_flag(C "-Werror" C_SUPPORTS_WERROR)

libical/libical cmake/modules/openssf-c.cmake :75

check_compiler_flag(C "-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3" C_SUPPORTS_FORTIFY_SOURCE)

libical/libical cmake/modules/openssf-c.cmake :79

check_compiler_flag(C "-D_GLIBC_ASSERTIONS" C_SUPPORTS_GLIBC_ASSERTIONS)

libical/libical cmake/modules/openssf-c.cmake :83

check_compiler_flag(C "-fstrict-flex-arrays=3" C_SUPPORTS_FSTRICT_FLEX_ARRAYS3)

libical/libical cmake/modules/openssf-c.cmake :87

check_compiler_flag(C "-fstack-clash-protection" C_SUPPORTS_FSTACK_CLASH_PROTECTION)

libical/libical cmake/modules/openssf-c.cmake :91

check_compiler_flag(C "-fstack-protector-strong" C_SUPPORTS_FSTACK_PROTECTOR_STRONG)

libical/libical cmake/modules/openssf-c.cmake :95

check_compiler_flag(C "-fcf-protection=full" C_SUPPORTS_FCF_PROTECTION_FULL)

libical/libical cmake/modules/openssf-c.cmake :99

check_compiler_flag(C "-mbranch-protection=standard" C_SUPPORTS_MBRANCH_PROTECTION_STANDARD)

libical/libical cmake/modules/openssf-c.cmake :103

check_compiler_flag(C "-fno-delete-null-pointer-checks" C_SUPPORTS_FNO_DELETE_NULL_POINTER_CHECKS)

libical/libical cmake/modules/openssf-c.cmake :107

check_compiler_flag(C "-fno-strict-overflow" C_SUPPORTS_FNO_STRICT_OVERFLOW)

libical/libical cmake/modules/openssf-c.cmake :111

check_compiler_flag(C "-fno-strict-aliasing" C_SUPPORTS_FNO_STRICT_ALIASING)

libical/libical cmake/modules/openssf-c.cmake :115

check_compiler_flag(C "-ftrivial-auto-var-init" C_SUPPORTS_FTRIVIAL_AUTO_VAR_INIT)

libical/libical cmake/modules/openssf-cpp.cmake :16

check_compiler_flag(CXX "-Wall" CXX_SUPPORTS_WALL)

libical/libical cmake/modules/openssf-cpp.cmake :20

check_compiler_flag(CXX "-Wextra" CXX_SUPPORTS_WEXTRA)

libical/libical cmake/modules/openssf-cpp.cmake :24

check_compiler_flag(CXX "-Wformat" CXX_SUPPORTS_WFORMAT)

libical/libical cmake/modules/openssf-cpp.cmake :28

check_compiler_flag(CXX "-Wformat=2" CXX_SUPPORTS_WFORMAT2)

libical/libical cmake/modules/openssf-cpp.cmake :32

check_compiler_flag(CXX "-Wconversion" CXX_SUPPORTS_WCONVERSION)

libical/libical cmake/modules/openssf-cpp.cmake :36

check_compiler_flag(CXX "-Wsign-conversion" CXX_SUPPORTS_WSIGNCONVERSION)

libical/libical cmake/modules/openssf-cpp.cmake :40

check_compiler_flag(CXX "-Wtrampolines" CXX_SUPPORTS_WTRAMPOLINES)

libical/libical cmake/modules/openssf-cpp.cmake :44

check_compiler_flag(CXX "-Wimplicit-fallthrough" CXX_SUPPORTS_WIMPLICIT_FALLTHROUGH)

libical/libical cmake/modules/openssf-cpp.cmake :48

check_compiler_flag(CXX "-Wbidi-chars=any" CXX_SUPPORTS_WBIDI_CHARS_ANY)

libical/libical cmake/modules/openssf-cpp.cmake :52

check_compiler_flag(CXX "-Wformat-security" CXX_SUPPORTS_WERROR_FORMAT_SECURITY)

libical/libical cmake/modules/openssf-cpp.cmake :56

check_compiler_flag(CXX "-Wimplicit" CXX_SUPPORTS_WERROR_IMPLICIT)

libical/libical cmake/modules/openssf-cpp.cmake :60

check_compiler_flag(CXX "-Wincompatible-pointer-types" CXX_SUPPORTS_WERROR_INCOMPATIBLE_POINTER_TYPES)

libical/libical cmake/modules/openssf-cpp.cmake :64

check_compiler_flag(CXX "-Wint-conversion" CXX_SUPPORTS_WERROR_INT_CONVERSION)

libical/libical cmake/modules/openssf-cpp.cmake :69

#check_compiler_flag(CXX "-Werror" CXX_SUPPORTS_WERROR)

libical/libical cmake/modules/openssf-cpp.cmake :75

check_compiler_flag(CXX "-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3" CXX_SUPPORTS_FORTIFY_SOURCE)

libical/libical cmake/modules/openssf-cpp.cmake :79

check_compiler_flag(CXX "-D_GLIBCXX_ASSERTIONS" CXX_SUPPORTS_GLIBCXX_ASSERTIONS)

libical/libical cmake/modules/openssf-cpp.cmake :83

check_compiler_flag(CXX "-fstrict-flex-arrays=3" CXX_SUPPORTS_FSTRICT_FLEX_ARRAYS3)

libical/libical cmake/modules/openssf-cpp.cmake :87

check_compiler_flag(CXX "-fstack-clash-protection" CXX_SUPPORTS_FSTACK_CLASH_PROTECTION)

libical/libical cmake/modules/openssf-cpp.cmake :91

check_compiler_flag(CXX "-fstack-protector-strong" CXX_SUPPORTS_FSTACK_PROTECTOR_STRONG)

libical/libical cmake/modules/openssf-cpp.cmake :95

check_compiler_flag(CXX "-fcf-protection=full" CXX_SUPPORTS_FCF_PROTECTION_FULL)

libical/libical cmake/modules/openssf-cpp.cmake :99

check_compiler_flag(CXX "-mbranch-protection=standard" CXX_SUPPORTS_MBRANCH_PROTECTION_STANDARD)

libical/libical cmake/modules/openssf-cpp.cmake :103

check_compiler_flag(CXX "-fno-delete-null-pointer-checks" CXX_SUPPORTS_FNO_DELETE_NULL_POINTER_CHECKS)

libical/libical cmake/modules/openssf-cpp.cmake :107

check_compiler_flag(CXX "-fno-strict-overflow" CXX_SUPPORTS_FNO_STRICT_OVERFLOW)

libical/libical cmake/modules/openssf-cpp.cmake :111

check_compiler_flag(CXX "-fno-strict-aliasing" CXX_SUPPORTS_FNO_STRICT_ALIASING)

libical/libical cmake/modules/openssf-cpp.cmake :115

check_compiler_flag(CXX "-ftrivial-auto-var-init" CXX_SUPPORTS_FTRIVIAL_AUTO_VAR_INIT)

ThePhD/sol2 CMakeLists.txt :200

check_compiler_flag(disable-permissive MSVC /permissive- GCC -pedantic)

ThePhD/sol2 CMakeLists.txt :201

check_compiler_flag(utf8-literal-encoding MSVC /execution-charset:utf-8 GCC -fexec-charset=utf-8)

ThePhD/sol2 CMakeLists.txt :202

check_compiler_flag(utf8-source-encoding MSVC /source-charset:utf-8 GCC -finput-charset=utf-8)

ThePhD/sol2 CMakeLists.txt :203

check_compiler_flag(extra-constexpr-depth MSVC /constexpr:depth2147483647 GCC -fconstexpr-depth=2147483647 CLANG -fconstexpr-depth=2147483647)

ThePhD/sol2 CMakeLists.txt :204

check_compiler_flag(extra-constexpr-steps MSVC /constexpr:steps2147483647 GCC -fconstexpr-ops-limit=2147483647 CLANG -fconstexpr-steps=2147483647)

ThePhD/sol2 CMakeLists.txt :205

check_compiler_flag(template-debugging-mode GCC -ftemplate-backtrace-limit=0)

ThePhD/sol2 CMakeLists.txt :206

check_compiler_flag(big-obj MSVC /bigobj)

ThePhD/sol2 CMakeLists.txt :208

check_compiler_flag(pedantic GCC -pedantic)

ThePhD/sol2 CMakeLists.txt :209

check_compiler_flag(warn-pedantic GCC -Wpedantic)

ThePhD/sol2 CMakeLists.txt :210

check_compiler_flag(warn-all MSVC /W4 GCC -Wall)

ThePhD/sol2 CMakeLists.txt :211

check_compiler_flag(warn-extra GCC -Wextra)

ThePhD/sol2 CMakeLists.txt :212

check_compiler_flag(warn-errors MSVC /WX GCC -Werror)

apple/swift Runtimes/Core/cmake/modules/CatalystSupport.cmake :25

check_compiler_flag(Swift "-emit-variant-module-path ${CMAKE_CURRENT_BINARY_DIR}/CompilerID/variant.swiftmodule" HAVE_Swift_VARIANT_MODULE_PATH_FLAG)

apple/swift Runtimes/Core/cmake/modules/CompilerSettings.cmake :53

check_compiler_flag(CXX "-mcx16" HAVE_CXX_MCX16)

apple/swift Runtimes/Supplemental/cmake/modules/CatalystSupport.cmake :27

check_compiler_flag(Swift "-emit-variant-module-path ${CMAKE_CURRENT_BINARY_DIR}/CompilerID/variant.swiftmodule" HAVE_Swift_VARIANT_MODULE_PATH_FLAG)

apple/swift stdlib/cmake/modules/AddSwiftStdlib.cmake :93

# use `check_compiler_flag(C ...)` here. Unfortunately, that uses a