cmake target_compile_features examples

Signatures

target_compile_features(<target> <PRIVATE|PUBLIC|INTERFACE> <feature> [...])

Examples

timi-liuliang/echo thirdparty/RadeonRays/Calc/CMakeLists.txt :58

target_compile_features(Calc PRIVATE cxx_std_11)

vindar/tgx CMakeLists.txt :42

target_compile_features(tgx PUBLIC cxx_std_17)

u3d-community/U3D Source/ThirdParty/Assimp/code/CMakeLists.txt :1417

TARGET_COMPILE_FEATURES(assimp PRIVATE c_std_99)

PieKing1215/FallingSandSurvival FallingSandSurvival/CMakeLists.txt :325

target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_14)

AcademySoftwareFoundation/Imath src/Imath/CMakeLists.txt :83

target_compile_features(${IMATH_LIBRARY}
    PRIVATE cxx_std_${IMATH_CXX_STANDARD}
    INTERFACE cxx_std_11
)

novelrt/NovelRT cmake/NovelRTBuildSystem.cmake :78

target_compile_features(${cmakeSafeName} PUBLIC cxx_std_17)

jkk-research/pointcloud_to_grid CMakeLists.txt :63

target_compile_features(pointcloud_to_grid_node PUBLIC c_std_99 cxx_std_17)

godlikepanos/anki-3d-engine ThirdParty/Reproc/cmake/reproc.cmake :108

target_compile_features(${TARGET} PUBLIC cxx_std_11)

prusa3d/Prusa-Firmware lib/Catch2/fuzzing/CMakeLists.txt :11

target_compile_features(fuzzhelper PUBLIC cxx_std_17)

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

target_compile_features(earcut_hpp INTERFACE cxx_std_11)

google/draco cmake/draco_targets.cmake :294

target_compile_features(${lib_NAME} PUBLIC cxx_std_11)

SoftFever/OrcaSlicer deps_src/fast_float/CMakeLists.txt :15

target_compile_features(fast_float INTERFACE cxx_std_14)

DanielChappuis/reactphysics3d CMakeLists.txt :265

target_compile_features(reactphysics3d PUBLIC cxx_std_17)

kcat/openal-soft fmt-11.2.0/CMakeLists.txt :57

target_compile_features(${name} PUBLIC cxx_std_20)

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

target_compile_features(SDL3-static PRIVATE c_std_99)

Hork-Engine/Hork-Source ThirdParty/EASTL/CMakeLists.txt :32

target_compile_features(EASTL PUBLIC cxx_std_14)

STORM-IRIT/Radium-Engine cmake/RadiumSetupFunctions.cmake :984

target_compile_features(${ARGS_TARGET} ${PropertyQualifier} cxx_std_17)

RavEngine/RavEngine CMakeLists.txt :389

target_compile_features(rve_importlib PRIVATE cxx_std_23)

zenustech/zeno projects/CUDA/CMakeLists.txt :185

target_compile_features(zshelper INTERFACE cuda_std_17)

luigifreda/plvs Thirdparty/Sophus/CMakeLists.txt :91

target_compile_features (sophus INTERFACE
  cxx_auto_type
  cxx_decltype
  cxx_nullptr
  cxx_right_angle_brackets
  cxx_variadic_macros
  cxx_variadic_templates
)

CloudCompare/CCCoreLib CMakeLists.txt :103

target_compile_features( CCCoreLib
	PRIVATE
		cxx_std_14
)

eidelen/DicomToMesh dicom2mesh/CMakeLists.txt :15

target_compile_features( dicom2mesh PRIVATE cxx_std_17 )

keith2018/SoftGLRender third_party/assimp/code/CMakeLists.txt :1198

TARGET_COMPILE_FEATURES(assimp PRIVATE c_std_99)

AlizaMedicalImaging/AlizaMS mdcm/Utilities/mdcmcharls/CMakeLists.txt :39

target_compile_features(${CHARLS_LIBRARY_NAME} PUBLIC cxx_std_14)

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

target_compile_features(${TARGET} PUBLIC cxx_std_20)

kokkos/kokkos cmake/build_env_info.cmake :110

target_compile_features(impl_git_version PRIVATE cxx_raw_string_literals)

alpaka-group/alpaka cmake/alpakaCommon.cmake :151

target_compile_features(alpaka INTERFACE cxx_std_${alpaka_CXX_STANDARD})

eclipse-ecal/ecal app/app_pb/CMakeLists.txt :75

target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_14)

Ipotrick/Daxa CMakeLists.txt :104

target_compile_features(daxa PUBLIC cxx_std_20)

annihilatorq/shadow_syscall CMakeLists.txt :70

target_compile_features(shadowsyscall INTERFACE
	cxx_std_20
)

epoupon/lms cmake/modules/FindFilesystem.cmake :211

target_compile_features(std::filesystem INTERFACE cxx_std_17)

nextcloud/desktop src/libsync/CMakeLists.txt :235

target_compile_features(nextcloudsync
    PRIVATE
        cxx_std_17
)

cs1ime/ceserver-rawmem thirdparty/cpp-httplib/CMakeLists.txt :193

target_compile_features(${PROJECT_NAME} ${_INTERFACE_OR_PUBLIC}
	cxx_std_11
)

Nukem9/dlssg-to-fsr3 dependencies/FidelityFX-SDK/sdk/tools/ffx_shader_compiler/CMakeLists.txt :126

target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)

YWL0720/YOLO_ORB_SLAM3 Thirdparty/Sophus/CMakeLists.txt :87

target_compile_features (sophus INTERFACE
  cxx_auto_type
  cxx_decltype
  cxx_nullptr
  cxx_right_angle_brackets
  cxx_variadic_macros
  cxx_variadic_templates
)

YWL0720/YOLO_ORB_SLAM3_with_pointcloud_map Thirdparty/Sophus/CMakeLists.txt :87

target_compile_features (sophus INTERFACE
  cxx_auto_type
  cxx_decltype
  cxx_nullptr
  cxx_right_angle_brackets
  cxx_variadic_macros
  cxx_variadic_templates
)

BLAST-WarpX/warpx CMakeLists.txt :579

target_compile_features(${warpx_tgt} PUBLIC cuda_std_17)

doodlum/skyrim-community-shaders cmake/XSEPlugin.cmake :7

target_compile_features(
	"${PROJECT_NAME}"
	PRIVATE
	cxx_std_23
)

Morwenn/cpp-sort CMakeLists.txt :40

target_compile_features(cpp-sort INTERFACE cxx_std_14)

timsort/cpp-TimSort CMakeLists.txt :22

target_compile_features(timsort INTERFACE cxx_std_20)

gadomski/cpd vendor/googletest-1.14.0/googletest/cmake/internal_utils.cmake :198

target_compile_features(${name} PUBLIC cxx_std_14)

o-reo/push_swap_visualizer src/CMakeLists.txt :5

target_compile_features(VisualizerLib PRIVATE cxx_std_17)

gunrock/gunrock CMakeLists.txt :137

target_compile_features(essentials INTERFACE cxx_std_17)

liminchen/OptCuts ext/libigl/external/cgal/src/CGAL_Project/cmake/modules/CGAL_CreateSingleSourceCGALProgram.cmake :46

target_compile_features(${exe_name} PRIVATE ${CXX_FEATURES})

kahypar/mt-kahypar CMakeLists.txt :52

target_compile_features(MtKaHyPar-BuildFlags INTERFACE cxx_std_17)

wpilibsuite/allwpilib benchmark/CMakeLists.txt :9

target_compile_features(benchmarkCpp PUBLIC cxx_std_20)

SCOREC/core apf_cap/CMakeLists.txt :44

target_compile_features(framework_meshing INTERFACE cxx_std_14)

nv-legate/legate src/python/legate/CMakeLists.txt :102

target_compile_features(${target} PRIVATE cxx_std_${CMAKE_CXX_STANDARD})

WerWolv/Fenestra lib/third_party/nlohmann_json/CMakeLists.txt :106

target_compile_features(${NLOHMANN_JSON_TARGET_NAME} INTERFACE cxx_range_for)

CasparCG/server src/CMakeModules/CasparCG_Util.cmake :36

target_compile_features (${TARGET} PRIVATE cxx_std_17)

peter-winter/ctpg CMakeLists.txt :35

target_compile_features(ctpg INTERFACE cxx_std_17)

RichieSams/FiberTaskingLib benchmarks/CMakeLists.txt :33

target_compile_features(ftl PUBLIC cxx_std_17)

simulton/QSchematic qschematic/CMakeLists.txt :20

target_compile_features(
        ${target}
        PUBLIC
            cxx_std_23
    )

lightspark/lightspark src/3rdparty/ordered-map/tests/CMakeLists.txt :10

target_compile_features(tsl_ordered_map_tests PRIVATE cxx_std_11)

x64dbg/x64dbg src/cross/CMakeLists.txt :83

target_compile_features(minidump PRIVATE
	cxx_std_20
)

gnss-sdr/gnss-sdr src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/cmake/Modules/FindFILESYSTEM.cmake :236

target_compile_features(std::filesystem INTERFACE cxx_std_17)

WarmUpTill/SceneSwitcher CMakeLists.txt :340

target_compile_features(${LIB_NAME} PUBLIC cxx_std_17)

ossia/score cmake/ScoreExternalAddon.developer.cmake :198

target_compile_features(score_lib_base INTERFACE "${CXX_VERSION_FLAG}")

OpenKneeboard/OpenKneeboard third-party/cef.cmake :81

target_compile_features(
    Cef::LibCef
    INTERFACE
    cxx_std_17
)

CaseyCarter/cmcstl2 CMakeLists.txt :35

target_compile_features(stl2 INTERFACE cxx_std_20)

LLNL/Caliper examples/apps/CMakeLists.txt :29

target_compile_features(${app} PRIVATE c_std_99)

chdb-io/chdb contrib/grpc-cmake/grpc.cmake :76

target_compile_features(address_sorting PUBLIC cxx_std_14)

NVIDIA/MatX CMakeLists.txt :126

target_compile_features(matx INTERFACE cxx_std_17 $<BUILD_INTERFACE:cuda_std_17>)

louis-langholtz/PlayRho Library/CMakeLists.txt :376

target_compile_features(PlayRho PUBLIC cxx_std_17)

v6d-io/v6d packages-java/CMakeLists.txt :75

target_compile_features(${LIBNAME} PRIVATE cxx_std_14)

IBAMR/IBAMR CMakeLists.txt :406

TARGET_COMPILE_FEATURES(BUNDLED_MUPARSER PUBLIC cxx_std_${IBAMR_CXX_STANDARD})

boostorg/redis CMakeLists.txt :18

target_compile_features(boost_redis INTERFACE cxx_std_17)

OSVR/SteamVR-OSVR src/CMakeLists.txt :92

target_compile_features(driver_osvr PRIVATE cxx_override)

Kitware/ParaView ThirdParty/protobuf/vtkprotobuf/src/CMakeLists.txt :93

target_compile_features(protobuf
  PUBLIC
    cxx_std_11)

hosseinmoein/DataFrame CMakeLists.txt :44

target_compile_features(DataFrame PUBLIC cxx_std_23)

zeek/zeek CMakeLists.txt :317

target_compile_features(zeek_fuzzer_shared PRIVATE ${ZEEK_CXX_STD})

sandialabs/InterSpec external_libs/Minuit2/src/CMakeLists.txt :211

target_compile_features(Minuit2 PUBLIC cxx_nullptr cxx_nonstatic_member_init)

DIPlib/diplib dependencies/pybind11/CMakeLists.txt :236

target_compile_features(pybind11_headers INTERFACE cxx_inheriting_constructors cxx_user_literals
                                                     cxx_right_angle_brackets)

BRAINSia/BRAINSTools BRAINSABC/brainseg/CMakeLists.txt :40

target_compile_features(BRAINSABCCOMMONLIB PRIVATE ${BABC_CXX11_Required_Features})

Tulip-Dev/tulip thirdparty/OGDF/cmake/ogdf.cmake :76

target_compile_features(${OGDFLibrary} PUBLIC cxx_range_for)

seqan/seqan3 cmake/seqan3-config.cmake :317

target_compile_features (seqan3_seqan3 INTERFACE cxx_std_23)

NERSC/timemory cmake/Modules/Packages.cmake :395

target_compile_features(
    timemory-headers
    INTERFACE cxx_std_${CMAKE_CXX_STANDARD}
              cxx_auto_type
              cxx_alias_templates
              cxx_constexpr
              cxx_decltype
              cxx_decltype_auto
              cxx_defaulted_functions
              cxx_delegating_constructors
              cxx_deleted_functions
              cxx_extern_templates
              cxx_generic_lambdas
              cxx_noexcept
              cxx_range_for
              cxx_return_type_deduction
              cxx_rvalue_references
              cxx_thread_local
              cxx_trailing_return_types
              cxx_variadic_macros
              cxx_variadic_templates
              cxx_template_template_parameters)

emsec/hal deps/pybind11/CMakeLists.txt :189

target_compile_features(pybind11_headers INTERFACE cxx_inheriting_constructors cxx_user_literals
                                                     cxx_right_angle_brackets)

WerWolv/ImHex lib/third_party/nlohmann_json/CMakeLists.txt :106

target_compile_features(${NLOHMANN_JSON_TARGET_NAME} INTERFACE cxx_range_for)

catchorg/Catch2 fuzzing/CMakeLists.txt :11

target_compile_features(fuzzhelper PUBLIC cxx_std_17)

gnuradio/gnuradio gnuradio-runtime/lib/CMakeLists.txt :156

target_compile_features(gnuradio-runtime PUBLIC cxx_std_17)

xtensor-stack/xtensor CMakeLists.txt :198

target_compile_features(xtensor INTERFACE cxx_std_20)

apache/trafficserver lib/Catch2/src/CMakeLists.txt :369

target_compile_features(Catch2 PUBLIC cxx_std_14)

STEllAR-GROUP/hpx cmake/HPX_CompilerFlagsTargets.cmake :13

target_compile_features(hpx_private_flags INTERFACE cxx_std_${HPX_CXX_STANDARD})

dartsim/dart cmake/DARTMacros.cmake :252

target_compile_features(${target} PUBLIC ${comple_feature})

wjakob/nanobind cmake/nanobind-config.cmake :263

target_compile_features(${TARGET_NAME} PUBLIC cxx_std_17)

simbody/simbody SimTKcommon/CMakeLists.txt :148

target_compile_features(SimTKcommon PUBLIC cxx_std_11)

root-project/root cmake/modules/RootMacros.cmake :724

target_compile_features(${dictionary} PRIVATE
      $<TARGET_PROPERTY:${ARG_MODULE},COMPILE_FEATURES>)

brainflow-dev/brainflow third_party/fmt/CMakeLists.txt :268

target_compile_features(fmt INTERFACE ${FMT_REQUIRED_FEATURES})

CrowCpp/Crow tests/fuzz/CMakeLists.txt :9

target_compile_features(${executable_name} PRIVATE cxx_std_17)

facebookincubator/velox velox/experimental/breeze/cmake/metal.cmake :42

target_compile_features(${target} PRIVATE cxx_std_17)

google/filament third_party/abseil/CMake/AbseilDll.cmake :889

target_compile_features(${_dll} PUBLIC ${ABSL_INTERNAL_CXX_STD_FEATURE})

tukl-msd/DRAMPower src/cli/lib/CMakeLists.txt :14

target_compile_features(cli_lib PUBLIC cxx_std_17)

percona/percona-xtrabackup cmake/libutils.cmake :93

TARGET_COMPILE_FEATURES(${TARGET} PUBLIC cxx_std_20)

seladb/PcapPlusPlus Common++/CMakeLists.txt :38

target_compile_features(Common++ PUBLIC cxx_std_14)

NREL/EnergyPlus CMakeLists.txt :33

target_compile_features(project_options INTERFACE cxx_std_17)

resiprocate/resiprocate rutil/CMakeLists.txt :233

target_compile_features(rutil PUBLIC cxx_std_11)

mysql/mysql-server cmake/libutils.cmake :93

TARGET_COMPILE_FEATURES(${TARGET} PUBLIC cxx_std_20)

mortbopet/Ripes src/CMakeLists.txt :30

target_compile_features(${LIB_NAME} PRIVATE cxx_std_17)

robotology/yarp src/libYARP_companion/src/CMakeLists.txt :95

target_compile_features(YARP_companion PUBLIC cxx_std_17)