cmake check_cxx_compiler_flag examples

Signatures

check_cxx_compiler_flag(<flag> <var>)

Examples

MegviiRobot/CamLaserCalibraTool CMakeLists.txt :7

CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)

timi-liuliang/echo thirdparty/eigen-3.3.3/CMakeLists.txt :121

check_cxx_compiler_flag(${FLAG} COMPILER_SUPPORT_${SFLAG})

patrikhuber/4dface CMakeLists.txt :29

check_cxx_compiler_flag(-std=c++14 HAS_CXX14_FLAG)

geodynamics/aspect contrib/world_builder/CMakeLists.txt :420

check_cxx_compiler_flag(-Wsuggest-override SUGGEST_OVERWRITE_CXX_COMPILE_FLAG)

u3d-community/U3D Source/ThirdParty/SDL/CMakeLists.txt :2865

check_cxx_compiler_flag(${FLAG} HAS_CXX_${SUFFIX})

alicevision/AliceVision src/cmake/AddCompilerFlag.cmake :7

check_cxx_compiler_flag("${_flag}" check_cxx_compiler_flag_${_flag_esc})

FreeCAD/FreeCAD src/3rdParty/salomesmesh/CMakeLists.txt :15

check_cxx_compiler_flag("-Wno-unused-result" _flag_found)

anhttran/extreme_3d_faces lib/3rdParty/Eigen/CMakeLists.txt :121

check_cxx_compiler_flag(${FLAG} COMPILER_SUPPORT_${SFLAG})

godlikepanos/anki-3d-engine ThirdParty/Sdl2/CMakeLists.txt :2737

check_cxx_compiler_flag(${FLAG} HAS_CXX_${SUFFIX})

prusa3d/Prusa-Firmware lib/Catch2/CMake/CatchMiscFunctions.cmake :12

check_cxx_compiler_flag("${flagname}" HAVE_FLAG_${flag_identifier})

bambulab/BambuStudio src/earcut/CMakeLists.txt :72

check_cxx_compiler_flag("-fsanitize=undefined" HAVE_FLAG_SANITIZE_UNDEFINED)

google/draco cmake/draco_flags.cmake :103

check_cxx_compiler_flag("${all_cxx_flags_string}" draco_all_cxx_flags_pass)

tinyobjloader/tinyobjloader cmake/sanitizers/sanitize-helpers.cmake :84

check_cxx_compiler_flag("${FLAG}" ${VARIABLE})

DanielChappuis/reactphysics3d CMakeModules/CodeCoverage.cmake :165

check_cxx_compiler_flag(-fprofile-abs-path HAVE_fprofile_abs_path)

kcat/openal-soft CMakeLists.txt :325

check_cxx_compiler_flag(/permissive- HAVE_PERMISSIVE_SWITCH)

anhttran/3dmm_basic lib/3rdParty/Eigen/CMakeLists.txt :121

check_cxx_compiler_flag(${FLAG} COMPILER_SUPPORT_${SFLAG})

cadaver/turso3d ThirdParty/SDL/CMakeLists.txt :3036

check_cxx_compiler_flag(${FLAG} HAS_CXX_${SUFFIX})

Hork-Engine/Hork-Source ThirdParty/EASTL/scripts/CMake/CommonCppFlags.cmake :6

check_cxx_compiler_flag("-fchar8_t" EASTL_HAS_FCHAR8T_FLAG)

GlPortal/RadixEngine external/json11/CMakeLists.txt :18

CHECK_CXX_COMPILER_FLAG(_warning_flag _flag_supported)

STORM-IRIT/Radium-Engine cmake/CodeCoverage.cmake :174

check_cxx_compiler_flag(-fprofile-abs-path HAVE_cxx_fprofile_abs_path)

RavEngine/RavEngine deps/assimp/contrib/draco/cmake/draco_flags.cmake :103

check_cxx_compiler_flag("${all_cxx_flags_string}" draco_all_cxx_flags_pass)

zenustech/zeno projects/FEM/LBFGSpp/CMakeLists.txt :17

check_cxx_compiler_flag(-Wall WALL_SUPPORTED)

keith2018/SoftGLRender third_party/assimp/contrib/draco/cmake/compiler_flags.cmake :49

check_cxx_compiler_flag("${cxx_flag}" CXX_FLAG_SUPPORTED)

GPUOpen-Drivers/pal cmake/PalCompilerOptions.cmake :94

check_cxx_compiler_flag(-gz HAS_COMPRESSED_DEBUG)

kokkos/kokkos cmake/kokkos_arch.cmake :399

check_cxx_compiler_flag(${KOKKOS_ARCH_ARMV84_SVE_FLAG} COMPILER_SUPPORTS_ARMV84_SVE)

alpaka-group/alpaka thirdParty/catch2/CMake/CatchMiscFunctions.cmake :12

check_cxx_compiler_flag("${flagname}" HAVE_FLAG_${flag_identifier})

YWL0720/YOLO_ORB_SLAM3 CMakeLists.txt :19

CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14)

YWL0720/YOLO_ORB_SLAM3_with_pointcloud_map CMakeLists.txt :19

CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14)

xiefei2929/ORB_SLAM3-ROS-Interface CMakeLists.txt :20

CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)

JGRennison/OpenTTD-patches cmake/CompileFlags.cmake :132

check_cxx_compiler_flag("-flifetime-dse=1" LIFETIME_DSE_FOUND)

ANTsX/ANTs CMake/ITKSetStandardCompilerFlags.cmake :48

check_cxx_compiler_flag(${flag} CXX_HAS_WARNING${flag_var})

ThePhD/sol2 cmake/Modules/CheckCompilerDiagnostic.cmake :55

check_cxx_compiler_flag(-wo${diagnostic_MSVC} CXX_DIAGNOSTIC_${suffix})

NREL/OpenStudio CMakeLists.txt :72

CHECK_CXX_COMPILER_FLAG(${flag} ${test})

OpenChemistry/avogadroapp cmake/CompilerFlags.cmake :10

check_cxx_compiler_flag("-Werror=return-type" HAVE_GCC_ERROR_RETURN_TYPE)

pcb9382/FaceAlgorithm include/Eigen/CMakeLists.txt :112

check_cxx_compiler_flag(${FLAG} COMPILER_SUPPORT_${SFLAG})

Smorodov/Multitarget-tracker thirdparty/pybind11/tools/pybind11Tools.cmake :23

check_cxx_compiler_flag("-std=c++14" HAS_CPP14_FLAG)

zm0612/Hybrid_A_Star CMakeLists.txt :11

CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)

supercollider/supercollider tools/cmake_gen/SuperColliderCompilerConfig.cmake :13

CHECK_CXX_COMPILER_FLAG(-msse has_sse)

Morwenn/cpp-sort cmake/Findcodecov.cmake :101

check_cxx_compiler_flag("${FLAG}" COVERAGE_FLAG_DETECTED)

numenta/nupic.core-legacy CommonCompilerConfig.cmake :254

CHECK_CXX_COMPILER_FLAG(-m${BITNESS} compiler_supports_machine_option)

pnnl/SHAD cmake/config.cmake :40

check_cxx_compiler_flag("-no-pie" CXX_SUPPORT_NO_PIE)

bjoern-andres/graph CMakeLists.txt :40

CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)

Kitware/kwiver CMake/utils/kwiver-utils-flags.cmake :21

check_cxx_compiler_flag("${flag}" "has_compiler_flag-${safeflag}")

RSIA-LIESMARS-WHU/LSHBOX include/eigen/CMakeLists.txt :112

check_cxx_compiler_flag(${FLAG} COMPILER_SUPPORT_${SFLAG})

liminchen/OptCuts ext/libigl/external/eigen/CMakeLists.txt :121

check_cxx_compiler_flag(${FLAG} COMPILER_SUPPORT_${SFLAG})

kahypar/mt-kahypar CMakeLists.txt :300

check_cxx_compiler_flag(-mcrc32 KAHYPAR_HAS_CRC32)

rheit/zdoom dumb/CMakeLists.txt :116

CHECK_CXX_COMPILER_FLAG( -msse DUMB_CAN_USE_SSE )

bareos/bareos cmake/BareosDisableWarnings.cmake :60

check_cxx_compiler_flag(
        "-W${plain_warning}" "CXX_SUPPORTS_W${plain_warning_sym}"
      )

WerWolv/Fenestra cmake/build_helpers.cmake :330

check_cxx_compiler_flag(-gz=zstd ZSTD_AVAILABLE_COMPILER)

maidsafe-archive/MaidSafe cmake_modules/find_ubsan.cmake :45

check_cxx_compiler_flag("-fsanitize=undefined" HAVE_FLAG_SANITIZE_UNDEFINED)

RichieSams/FiberTaskingLib cmake/AddCompilerFlags.cmake :19

CHECK_CXX_COMPILER_FLAG("-W${NO_FLAG}" ${NAME})

facebook/rocksdb CMakeLists.txt :223

CHECK_CXX_COMPILER_FLAG("-momit-leaf-frame-pointer" HAVE_OMIT_LEAF_FRAME_POINTER)

lightspark/lightspark tests/test-runner/3rdparty/cpptrace/test/CMakeLists.txt :28

check_cxx_compiler_flag("-gdwarf-4" HAS_DWARF4)

JSBSim-Team/jsbsim tests/unit_tests/CMakeModules/Findcodecov.cmake :101

check_cxx_compiler_flag("${FLAG}" COVERAGE_FLAG_DETECTED)

gnss-sdr/gnss-sdr CMakeLists.txt :281

check_cxx_compiler_flag(-fstandalone-debug HAVE_STANDALONE_DEBUG)

ByConity/ByConity cmake/add_warning.cmake :9

check_cxx_compiler_flag("-W${flag}" SUPPORTS_CXXFLAG_${underscored_flag})

CppMicroServices/CppMicroServices CMakeLists.txt :177

check_cxx_compiler_flag(-Wno-missing-braces HAS_MISSING_BRACES_FLAG)

ossia/score cmake/ScoreConfiguration.cmake :141

check_cxx_compiler_flag(-Wno-gnu-anonymous-struct has_w_gnu_anonymous_struct_flag)

psi4/psi4 cmake/psi4OptionsTools.cmake :123

CHECK_CXX_COMPILER_FLAG("${flag_i}" test_option)

stp/stp CMakeLists.txt :319

check_cxx_compiler_flag("${flagname}" HAVE_FLAG_${flagname})

lizardfs/lizardfs cmake/EnvTests.cmake :89

check_cxx_compiler_flag(-mcrc32    CXX_HAS_MCRC32)

CaseyCarter/cmcstl2 config/cmake/FindSanitizer.cmake :31

check_cxx_compiler_flag(-fsanitize=${san} ${san}_sanitizer_supported)

LLNL/Caliper src/CMakeLists.txt :5

check_cxx_compiler_flag("-Wall" Supports_Wall_Flag)

chdb-io/chdb cmake/add_warning.cmake :9

check_cxx_compiler_flag("-W${flag}" SUPPORTS_CXXFLAG_${underscored_flag})

PaoPaoRobot/ORB_SLAM2 Examples/ROS/ORB_SLAM2/CMakeLists.txt :17

CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)

v6d-io/v6d CMakeLists.txt :195

check_cxx_compiler_flag(-Wno-class-conversion W_NO_CLASS_CONVERSION)

IBAMR/IBAMR ibtk/contrib/eigen/CMakeLists.txt :71

check_cxx_compiler_flag(${FLAG} COMPILER_SUPPORT_${SFLAG})

TheAssemblyArmada/Thyme CMakeLists.txt :167

check_cxx_compiler_flag(-Wno-invalid-offsetof HAVE_NO_INVALID_OFFSETOF)

NVIDIA/DALI CMakeLists.txt :49

check_cxx_compiler_flag(-fopenmp      CXX_HAVE_OMP)

milvus-io/knowhere cmake/utils/compile_flags.cmake :2

check_cxx_compiler_flag(-std=gnu++17 COMPILER_SUPPORTS_CXX17)

LiangliangNan/MVStudio 3rd_party/nlopt/CMakeLists.txt :167

check_cxx_compiler_flag ("-std=c++11" SUPPORTS_STDCXX11)

OSVR/SteamVR-OSVR cmake/EnableExtraCompilerWarnings.cmake :31

check_cxx_compiler_flag(${_flag} SUPPORTS_WARNING_${_flagvar})

danmar/cppcheck cmake/compileroptions.cmake :5

check_cxx_compiler_flag(${FLAG} ${mangled_flag})

Kitware/ParaView CMake/ParaViewCompilerExtraFlags.cmake :24

check_cxx_compiler_flag(-Werror=return-type HAVE_GCC_ERROR_RETURN_TYPE)

scanner-research/scanner CMakeLists.txt :31

CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)

zeek/zeek CMakeLists.txt :786

check_cxx_compiler_flag(${_sanitizer_flags} COMPILER_SUPPORTS_SANITIZERS)

Amber-MD/cpptraj cmake-cpptraj/CompilerFlags.cmake :100

check_cxx_compiler_flag(-Wno-unused-local-typedefs SUPPORTS_WNO_UNUSED_LOCAL_TYPEDEFS)

DIPlib/diplib dependencies/pybind11/tools/pybind11Common.cmake :287

check_cxx_compiler_flag("${cxxflags}" ${result})

gismo/gismo cmake/AddCompilerFlag.cmake :144

check_cxx_compiler_flag("${_flag}" check_cxx_compiler_flag_${_flag_esc} "${_cxx_code}")

trailofbits/polytracker polytracker/src/compiler-rt/cmake/config-ix.cmake :12

check_cxx_compiler_flag("" ${out_var})

seqan/seqan3 test/seqan3-test.cmake :149

check_cxx_compiler_flag ("-falign-loops=32" SEQAN3_HAS_FALIGN_LOOPS)

awawa-dev/HyperHDR CMakeLists.txt :196

CHECK_CXX_COMPILER_FLAG("-Werror=unguarded-availability" REQUIRES_UNGUARDED_AVAILABILITY)

SimVascular/SimVascular Code/CMake/SimVascularFunctionCheckCompilerFlags.cmake :78

CHECK_CXX_COMPILER_FLAG(${CXX_FLAG_TO_TEST} HAS_FLAG_${suffix})

mchalupa/dg CMakeLists.txt :203

check_cxx_compiler_flag("-fsanitize=undefined,address" sanitizers_work)

mne-tools/mne-cpp src/external/eigen-3.4.0/CMakeLists.txt :71

check_cxx_compiler_flag(${FLAG} COMPILER_SUPPORT_${SFLAG})

NERSC/timemory cmake/Modules/Compilers.cmake :271

check_cxx_compiler_flag("-Werror" cxx_werror)

emsec/hal cmake/hal_cmake_tools.cmake :158

check_cxx_compiler_flag("${flag}" supports_${flag})

NASA-SW-VnV/ikos cmake/AddFlagUtils.cmake :5

check_cxx_compiler_flag(${flag} ${out_var})

GoSSIP-SJTU/TripleDoggy cmake/config-ix.cmake :325

check_cxx_compiler_flag("-fno-pie" SUPPORTS_NO_PIE_FLAG)

WerWolv/ImHex cmake/build_helpers.cmake :668

check_cxx_compiler_flag(-gz=zstd ZSTD_AVAILABLE_COMPILER)

ceph/ceph cmake/modules/BuildRocksDB.cmake :62

check_cxx_compiler_flag("-Wno-deprecated-copy" HAS_WARNING_DEPRECATED_COPY)

catchorg/Catch2 CMake/CatchMiscFunctions.cmake :12

check_cxx_compiler_flag("${flagname}" HAVE_FLAG_${flag_identifier})

nghttp2/nghttp2 cmake/ExtractValidFlags.cmake :25

check_cxx_compiler_flag("${flag}" "${flag_var}")

gnuradio/gnuradio CMakeLists.txt :378

check_cxx_compiler_flag(-fcx-limited-range HAVE_CX_LIMITED_RANGE)

opensim-org/opensim-core cmake/FindMatlab.cmake :868

check_cxx_compiler_flag(-pthread                    HAS_MINUS_PTHREAD)

Exiv2/exiv2 cmake/compilerFlags.cmake :37

check_cxx_compiler_flag(-fstack-clash-protection HAS_FSTACK_CLASH_PROTECTION)

xtensor-stack/xtensor benchmark/CMakeLists.txt :27

CHECK_CXX_COMPILER_FLAG(-march=native arch_native_supported)

apache/trafficserver lib/Catch2/CMake/CatchMiscFunctions.cmake :12

check_cxx_compiler_flag("${flagname}" HAVE_FLAG_${flag_identifier})

STEllAR-GROUP/hpx cmake/HPX_AddCompileFlag.cmake :82

check_cxx_compiler_flag(${FLAG} HPX_WITH_${_lang}_FLAG_${_name})

simbody/simbody cmake/Findcodecov.cmake :64

check_cxx_compiler_flag("${FLAG}" COVERAGE_FLAG_DETECTED)