cmake check_cxx_compiler_flag examples

Signatures

check_cxx_compiler_flag(<flag> <var>)

Examples

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

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

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})

mgerhardy/caveexpress cmake/macros.cmake :69

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

zer011b/fdtd3d CMakeLists.txt :297

check_cxx_compiler_flag(-std=c++11 COMPILER_SUPPORTS_CXX11)

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)

OGRECave/ogre CMakeLists.txt :124

check_cxx_compiler_flag(-msse OGRE_GCC_HAS_SSE)

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)

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

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

harfang3d/harfang3d harfang/cmake/CodeCoverage.cmake :171

check_cxx_compiler_flag(-fprofile-abs-path HAVE_fprofile_abs_path)

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})

qxiaofan/awesome-orb-slam3-3dvisioncraft-version CMakeLists.txt :20

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

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

check_cxx_compiler_flag("-fchar8_t" EASTL_HAS_FCHAR8T_FLAG)

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)

pioneerspacesim/pioneer contrib/fmt/CMakeLists.txt :237

check_cxx_compiler_flag(-Wzero-as-null-pointer-constant HAS_NULLPTR_WARNING)

overte-org/overte cmake/macros/SetupHifiLibrary.cmake :44

check_cxx_compiler_flag("/arch:AVX512" COMPILER_SUPPORTS_AVX512)

ssloy/tinykaboom CMakeLists.txt :9

check_cxx_compiler_flag("${flag}" flag_supported)

SlamMate/CDS-SLAM-Semantic-mapping-in-dynamic-environment CMakeLists.txt :17

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

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})

ZDoom/gzdoom libraries/ZMusic/CMakeLists.txt :113

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)

ANTsX/ANTs CMake/ITKSetStandardCompilerFlags.cmake :48

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

etternagame/etterna extern/boost/nowide/test/CMakeLists.txt :6

check_cxx_compiler_flag(-Wsuggest-override _NOWIDE_SUGGEST_OVERRIDE_SUPPORTED)

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})

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)

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

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

Vertical-Beach/ByteTrack-cpp CMakeLists.txt :15

CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17)

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/folly CMakeLists.txt :239

check_cxx_compiler_flag(-fcoroutines COMPILER_HAS_F_COROUTINES)

facebook/rocksdb CMakeLists.txt :223

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

openvinotoolkit/openvino cmake/developer_package/compile_flags/os_flags.cmake :228

check_cxx_compiler_flag("-Wsuggest-override" SUGGEST_OVERRIDE_SUPPORTED)

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)

wjakob/nori ext/CMakeLists.txt :43

CHECK_CXX_COMPILER_FLAG("-stdlib=libc++" HAS_LIBCPP)

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

check_cxx_compiler_flag(-fstandalone-debug HAVE_STANDALONE_DEBUG)

teddyluo/hybrid-a-star-annotation CMakeLists.txt :7

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

GPUOpen-Archive/Anvil examples/DynamicBuffers/CMakeLists.txt :7

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

CppMicroServices/CppMicroServices CMakeLists.txt :177

check_cxx_compiler_flag(-Wno-missing-braces HAS_MISSING_BRACES_FLAG)

alexa/avs-device-sdk capabilities/DavsClient/acsdkAssetsCommon/test/mocks/CMakeLists.txt :26

CHECK_CXX_COMPILER_FLAG("-Wno-deprecated-declarations" HAS_NO_DEPRECATED_DECLARATIONS)

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)

lizardfs/lizardfs cmake/EnvTests.cmake :89

check_cxx_compiler_flag(-mcrc32    CXX_HAS_MCRC32)

moneymanagerex/moneymanagerex 3rd/CMakeLists.txt :210

CHECK_CXX_COMPILER_FLAG("-std=gnu++11" COMPILER_SUPPORTS_GXX11)

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

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

v6d-io/v6d CMakeLists.txt :195

check_cxx_compiler_flag(-Wno-class-conversion W_NO_CLASS_CONVERSION)

dmlc/decord CMakeLists.txt :61

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

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

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

AcademySoftwareFoundation/MaterialX source/PyMaterialX/CMakeLists.txt :32

CHECK_CXX_COMPILER_FLAG(-Wno-undefined-var-template UNDEFINED_VAR_TEMPLATE_FLAG)

w111liang222/lidar-slam-detection slam/thirdparty/fast_gicp/thirdparty/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)

asset-group/Sni5Gect-5GNR-sniffing-and-exploitation CMakeLists.txt :386

check_cxx_compiler_flag(${flag} ${have})

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}")

AMICI-dev/AMICI CMakeLists.txt :49

check_cxx_compiler_flag(${flag} CUR_FLAG_SUPPORTED)

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})

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})

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})

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)

RHVoice/RHVoice cmake/Hardening.cmake :46

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

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)

hlrs-vis/covise cmake/cef_variables.cmake :148

CHECK_CXX_COMPILER_FLAG(-Wno-undefined-var-template COMPILER_SUPPORTS_NO_UNDEFINED_VAR_TEMPLATE)

vengi-voxel/vengi cmake/system/linux.cmake :96

check_cxx_compiler_flag("-Wthread-safety" HAVE_THREAD_SAFETY_CHECKS)

YosysHQ/nextpnr CMakeLists.txt :156

check_cxx_compiler_flag("-W${TRY_WARN_FLAG}" HAS_W${TRY_WARN_FLAG})

steemit/steem libraries/vendor/rocksdb/CMakeLists.txt :185

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

brndnmtthws/conky 3rdparty/Vc/cmake/AddCompilerFlag.cmake :112

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

root-project/root builtins/zstd/cmake/AddZstdCompilationFlags.cmake :16

CHECK_CXX_COMPILER_FLAG(${_flag} CXX_FLAG_${varname})