cmake target_compile_features examples

Signatures

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

Examples

LibreCAD/LibreCAD CMakeLists.txt :1636

target_compile_features(librecad_tests PRIVATE cxx_std_17)

gosu/gosu CMakeLists.txt :46

target_compile_features(gosu PUBLIC cxx_std_20)

nCine/nCine cmake/ncine_compiler_options.cmake :2

target_compile_features(ncine PUBLIC cxx_std_17)

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

target_compile_features(Calc PRIVATE cxx_std_11)

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)

microsoft/scenepic src/examples/CMakeLists.txt :41

target_compile_features(${example} PRIVATE cxx_std_14)

gwaldron/osgearth src/third_party/tinygltf/examples/validator/CMakeLists.txt :17

target_compile_features(tinygltf-validator
    PUBLIC
        cxx_range_for)

OGRECave/ogre PlugIns/GLSLang/CMakeLists.txt :8

target_compile_features(Plugin_GLSLangProgramManager PRIVATE cxx_std_17)

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

target_compile_features(${TARGET} PUBLIC c_std_99)

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)

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

target_compile_features(fast_float INTERFACE cxx_std_14)

facebookresearch/habitat-sim src/esp/CMakeLists.txt :548

target_compile_features(noise_model_kernels PUBLIC cxx_std_11)

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

target_compile_features(SDL3-shared PRIVATE c_std_99)

Universite-Gustave-Eiffel/I-Simpa src/lib_interface/input_output/pugixml/CMakeLists.txt :47

target_compile_features(pugixml PUBLIC cxx_long_long_type)

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)

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

target_compile_features(fmt PUBLIC cxx_std_11)

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

target_compile_features(${CHARLS_LIBRARY_NAME} PUBLIC cxx_std_14)

PDAL/PDAL cmake/macros.cmake :62

target_compile_features (${_name}
      INTERFACE
        # Enable C++17 standard compliance
        cxx_std_17
    )

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)

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

target_compile_features(nextcloudsync
    PRIVATE
        cxx_std_17
)

ZDoom/gzdoom libraries/cppdap/third_party/json/CMakeLists.txt :52

target_compile_features(${NLOHMANN_JSON_TARGET_NAME} INTERFACE cxx_range_for)

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
)

KjellKod/g3log Build.cmake :90

TARGET_COMPILE_FEATURES(${G3LOG_LIBRARY} PUBLIC cxx_variable_templates)

AcademySoftwareFoundation/OpenShadingLanguage src/liboslcomp/CMakeLists.txt :46

target_compile_features (${local_lib}
                         INTERFACE cxx_std_${DOWNSTREAM_CXX_STANDARD})

etternagame/etterna extern/boost/nowide/CMakeLists.txt :54

target_compile_features(nowide PUBLIC cxx_std_11)

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)

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 apriltag/CMakeLists.txt :123

target_compile_features(apriltag PUBLIC cxx_std_20)

mtrebi/memory-allocators CMakeLists.txt :15

target_compile_features(main PRIVATE cxx_std_11)

KhronosGroup/Vulkan-Samples app/plugins/CMakeLists.txt :101

target_compile_features(plugins PRIVATE $<TARGET_PROPERTY:apps,INTERFACE_COMPILE_FEATURES> $<TARGET_PROPERTY:framework,INTERFACE_COMPILE_FEATURES>)

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

MaaAssistantArknights/MaaAssistantArknights src/Dart/example/linux/CMakeLists.txt :31

target_compile_features(${TARGET} PUBLIC cxx_std_14)

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

target_compile_features(${NLOHMANN_JSON_TARGET_NAME} INTERFACE cxx_range_for)

RichieSams/FiberTaskingLib benchmarks/CMakeLists.txt :33

target_compile_features(ftl PUBLIC cxx_std_17)

facebook/folly CMakeLists.txt :483

target_compile_features(folly INTERFACE cxx_generic_lambdas)

openvinotoolkit/openvino src/cmake/openvino.cmake :33

target_compile_features(${TARGET_NAME} PUBLIC cxx_std_17)

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

target_compile_features(tsl_ordered_map_tests PRIVATE cxx_std_11)

wjakob/nori CMakeLists.txt :126

target_compile_features(nori PRIVATE cxx_std_17)

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)

CppMicroServices/CppMicroServices cmake/usMacroCreateBundle.cmake :111

target_compile_features(${PROJECT_TARGET}
  PUBLIC cxx_variadic_templates cxx_nullptr
  )

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
)

moneymanagerex/moneymanagerex 3rd/CMakeLists.txt :205

target_compile_features(wxSQLite3 PRIVATE cxx_std_11)

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

ethz-adrl/ifopt ifopt_core/CMakeLists.txt :23

target_compile_features(${LIB_CORE} 
  PUBLIC 
    cxx_range_for 
    cxx_auto_type
)

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

AcademySoftwareFoundation/MaterialX source/PyMaterialX/External/PyBind11/CMakeLists.txt :240

target_compile_features(pybind11_headers INTERFACE cxx_inheriting_constructors cxx_user_literals
                                                     cxx_right_angle_brackets)

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

gscept/nebula extlibs/scripts/create_resource.cmake :254

target_compile_features(${lib} PUBLIC 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/make-user-target.cmake :4

target_compile_features(${TARGET} PUBLIC cxx_range_for)

AMICI-dev/AMICI ThirdParty/sundials/cmake/macros/SundialsAddLibrary.cmake :233

target_compile_features(${obj_target} ${sundials_add_library_COMPILE_FEATURES})

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)

trailofbits/pasta CMakeLists.txt :51

target_compile_features(pasta_cxx_settings INTERFACE cxx_std_20)

google/googletest googletest/cmake/internal_utils.cmake :198

target_compile_features(${name} PUBLIC cxx_std_17)

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)

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

target_compile_features(Catch2_buildall_interface INTERFACE cxx_std_14)

SergiusTheBest/plog test/CMakeLists.txt :122

target_compile_features(${_target} PRIVATE ${_cxx_std})

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

target_compile_features(hpx_public_flags INTERFACE cxx_std_${HPX_CXX_STANDARD})

dartsim/dart cmake/DARTMacros.cmake :252

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

simbody/simbody SimTKcommon/CMakeLists.txt :148

target_compile_features(SimTKcommon PUBLIC cxx_std_11)

YosysHQ/nextpnr 3rdparty/pybind11/CMakeLists.txt :237

target_compile_features(pybind11_headers INTERFACE cxx_inheriting_constructors cxx_user_literals
                                                     cxx_right_angle_brackets)

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

facebookincubator/velox velox/experimental/breeze/CMakeLists.txt :120

target_compile_features(perfetto PRIVATE cxx_std_17)

CLIUtils/CLI11 book/code/CMakeLists.txt :8

target_compile_features(CLI11::CLI11 INTERFACE cxx_std_11)

alibaba/async_simple CMakeLists.txt :14

target_compile_features(async_simple_header_only INTERFACE cxx_std_20)

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

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

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)

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)

winsoft666/QWebView src/webview2/CMakeLists.txt :66

target_compile_features(QWebView.WebView2 PRIVATE cxx_std_17)

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

target_compile_features(YARP_companion PUBLIC cxx_std_17)

p-ranav/alpaca CMakeLists.txt :20

target_compile_features(alpaca INTERFACE cxx_std_17)

ebu/ear-production-suite cmake_modules/FindJUCE.cmake :33

target_compile_features(Juce::core INTERFACE cxx_std_14)