cmake target_compile_options examples

Signatures

target_compile_options(<target> [BEFORE]
  <INTERFACE|PUBLIC|PRIVATE> [items1...]
[<INTERFACE|PUBLIC|PRIVATE> [items2...] ...])

Examples

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

target_compile_options(${WB_TARGET} INTERFACE ${WB_COMPILER_OPTIONS_INTERFACE} PRIVATE ${WB_COMPILER_OPTIONS_PRIVATE} ${WB_COMPILER_OPTIONS_PRIVATE_COVERAGE_NEW})

o3de/o3de cmake/LYWrappers.cmake :500

target_compile_options(${dest_target} INTERFACE $<GENEX_EVAL:$<TARGET_PROPERTY:${source_target_de_alias},INTERFACE_COMPILE_OPTIONS>>)

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

target_compile_options(sdl-build-options INTERFACE "-fobjc-arc")

STORM-IRIT/Radium-Engine src/Engine/CMakeLists.txt :66

target_compile_options(${ra_engine_target} PRIVATE PUBLIC ${DEFAULT_COMPILE_OPTIONS} INTERFACE)

RavEngine/RavEngine deps/fmt/CMakeLists.txt :31

target_compile_options(${target}
      PRIVATE /interface /ifcOutput ${BMI}
      INTERFACE /reference fmt=${BMI})

bmwcarit/ramses cmake/ramses/platformConfig.cmake :91

target_compile_options(ramses-build-options-base INTERFACE -Wno-implicit-fallthrough)

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

target_compile_options(${target}
      PRIVATE /interface /ifcOutput ${BMI}
      INTERFACE /reference fmt=${BMI})

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

target_compile_options(alpaka INTERFACE "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler /wd4505>")

NREL/OpenStudio csharp/CMakeLists.txt :61

target_compile_options(csharp_warnings INTERFACE "$<${is_gnu_or_clang_genex}:-Wno-deprecated-declarations>")

stack-of-tasks/pinocchio src/CMakeLists.txt :50

target_compile_options(${PROJECT_NAME}_headers INTERFACE ${PUBLIC_OPTIONS})

liminchen/OptCuts ext/libigl/shared/cmake/libigl.cmake :72

target_compile_options(igl_common INTERFACE "/MD$<$<CONFIG:Debug>:d>")

kahypar/mt-kahypar CMakeLists.txt :274

target_compile_options(MtKaHyPar-BuildFlags INTERFACE -fprofile-arcs -ftest-coverage -fprofile-update=atomic)

nv-legate/legate src/cmake/Modules/utilities.cmake :187

target_compile_options("${TARGET_NAME}"
                           INTERFACE "$<BUILD_INTERFACE:${lang_flags_if_has_secret_prop}>"
    )

openvinotoolkit/openvino src/common/conditional_compilation/CMakeLists.txt :36

target_compile_options(${TARGET_NAME} INTERFACE
                                -Wno-unused-function
                                -Wno-unused-variable
                                -Wno-unused-parameter
                                -Wno-unused-local-typedefs)

ossia/score cmake/ScoreExternalAddon.sdk.cmake :37

target_compile_options(score_lib_base INTERFACE
    "SHELL:-Xclang -internal-isystem -Xclang ${SCORE_SDK}/include/x86_64-unknown-linux-gnu/c++/v1"
  )

NVIDIA/MatX CMakeLists.txt :211

target_compile_options(matx INTERFACE ${OpenMP_CXX_FLAGS})

Kitware/ParaView CMake/ParaViewCompilerWarningFlags.cmake :23

target_compile_options(paraviewbuild
        INTERFACE
        "$<BUILD_INTERFACE:$<$<COMPILE_LANGUAGE:${lang}>:${flag}>>")

topology-tool-kit/ttk CMake/BaseCode.cmake :97

target_compile_options(${library} INTERFACE -mcpu=apple-m1)

in-formant/in-formant external/filesystem-compat/CMakeLists.txt :34

target_compile_options(ghc_filesystem INTERFACE "$<$<C_COMPILER_ID:MSVC>:/utf-8>")

NERSC/timemory cmake/Modules/ConfigCUDA.cmake :147

target_compile_options(
                ${PROJECT_CUDA_INTERFACE_PREFIX}-cuda
                INTERFACE
                    $<$<COMPILE_LANGUAGE:CUDA>:$<$<CUDA_COMPILER_ID:NVIDIA>:--expt-extended-lambda>>
                )

emsec/hal cmake/hal_plugin.cmake :45

target_compile_options(${target_name}
                           PUBLIC ${COMPILE_OPTIONS_PUBLIC}
                           PRIVATE ${COMPILE_OPTIONS_PRIVATE}
                           INTERFACE ${COMPILE_OPTIONS_INTERFACE}
                           ${ARG_COMPILE_OPTIONS})

trailofbits/pasta CMakeLists.txt :59

target_compile_options(pasta_cxx_settings INTERFACE ${CXX_WARNING_OPTIONS})

AcademySoftwareFoundation/openvdb nanovdb/nanovdb/CMakeLists.txt :324

target_compile_options(nanovdb INTERFACE
      "$<$<COMPILE_LANG_AND_ID:CUDA,NVIDIA>:-arch=sm_75>")

apache/trafficserver lib/CMakeLists.txt :44

target_compile_options(Catch2WithMain INTERFACE -Wno-error=parentheses)

STEllAR-GROUP/hpx cmake/HPX_GeneratePackage.cmake :143

target_compile_options(
    hpx_pkgconfig_application INTERFACE "-std=c++${HPX_CXX_STANDARD}"
  )

simbody/simbody SimTKcommon/CMakeLists.txt :151

target_compile_options(SimTKcommon INTERFACE
    "$<$<AND:$<CXX_COMPILER_ID:MSVC>,$<CONFIG:Debug>>:/wd4996>")

CLIUtils/CLI11 cmake/CLI11Warnings.cmake :27

target_compile_options(
  CLI11_warnings
  INTERFACE $<$<BOOL:${CLI11_FORCE_LIBCXX}>:-stdlib=libc++>
            $<$<CXX_COMPILER_ID:MSVC>:/W4
            $<$<BOOL:${CLI11_WARNINGS_AS_ERRORS}>:/WX>>
            $<$<NOT:$<CXX_COMPILER_ID:MSVC>>:${unix-warnings}
            $<$<BOOL:${CLI11_WARNINGS_AS_ERRORS}>:-Werror>>)

google/filament third_party/dawn/src/cmake/DawnCompilerWarningFlags.cmake :77

target_compile_options(dawn_warnings_config
        INTERFACE
          "$<BUILD_INTERFACE:$<$<COMPILE_LANGUAGE:${lang}>:${flag}>>"
      )

NREL/EnergyPlus cmake/CompilerFlags.cmake :23

target_compile_options(project_options INTERFACE /nologo)

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

target_compile_options(Juce::core INTERFACE -x objective-c++)

manticoresoftware/manticoresearch CMakeLists.txt :82

target_compile_options ( lextra INTERFACE -g -fsanitize=address,fuzzer )

stephenberry/glaze CMakeLists.txt :26

target_compile_options(glaze_glaze INTERFACE "/Zc:preprocessor" /permissive- /Zc:lambda)

OSVR/OSVR-Core src/osvr/Util/CMakeLists.txt :234

target_compile_options(${LIBNAME_INTERFACE}
    INTERFACE $<BUILD_INTERFACE:${OSVR_CXX11_FLAGS}>)

Bareflank/bsl cmake/interface/bsl_internal.cmake :24

target_compile_options(bsl_internal INTERFACE
    -fno-exceptions
    -fno-rtti
    -fstack-protector-strong
)

mkiol/dsnote CMakeLists.txt :475

target_compile_options(compiler_flags INTERFACE "-pie;-Wall;-Wextra;-Wpedantic;-Wno-attributes;-O3;-g")

AshamaneProject/AshamaneCore cmake/compiler/clang/settings.cmake :18

target_compile_options(trinity-warning-interface
      INTERFACE
        -Wno-deprecated-copy)

arximboldi/immer CMakeLists.txt :154

target_compile_options(immer-dev INTERFACE "--coverage")

KiCad/kicad-source-mirror thirdparty/fmt/CMakeLists.txt :369

target_compile_options(fmt-header-only INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/utf-8>)

sonosaurus/sonobus deps/juce/extras/Build/CMake/JUCEHelperTargets.cmake :41

target_compile_options(juce_recommended_warning_flags INTERFACE "/W4")

qTox/qTox cmake/warnings/CMakeLists.txt :18

target_compile_options(${PROJECT_NAME} INTERFACE
    $<$<OR:$<BOOL:${CLANG}>,$<CXX_COMPILER_ID:GNU>>:
        -fno-common;
        -fstrict-overflow;
        -ftrapv;
        -pedantic-errors;
        -Wall;
        -Wcast-align;
        -Wdouble-promotion;
        -Wextra;
        -Wformat=2;
        -Wmissing-declarations;
        -Wnon-virtual-dtor;
        -Wnull-dereference;
        -Wold-style-cast;
        -Woverloaded-virtual;
        -Wshadow;
        -Wsign-compare;
        -Wundef;
    >
    $<$<CXX_COMPILER_ID:GNU>:
        -Wduplicated-cond;
        -Wlogical-op;
    >
    $<$<BOOL:${CLANG}>:
        -Wmissing-variable-declarations;
        -Wno-gnu-zero-variadic-macro-arguments; # Required for gtest 1.10.
    >
    $<$<OR:$<BOOL:${CLANGCL}>,$<CXX_COMPILER_ID:MSVC>>:
        /permissive-;
        /W4;
        /w14254; # 'operator': conversion from 'type1:field_bits' to
                 # 'type2:field_bits', possible loss of data
        /w14263; # 'function': member function does not override any base class
                 # virtual member function
        /w14265; # 'classname': class has virtual functions, but destructor is not
                 # virtual instances of this class may not be destructed correctly
        /w14287; # 'operator': unsigned/negative constant mismatch
        /w14289; # nonstandard extension used: 'variable': loop control variable
                 # declared in the for-loop is used outside the for-loop scope
        /w14296; # 'operator': expression is always 'boolean_value'
        /w14311; # 'variable': pointer truncation from 'type1' to 'type2'
        /w14545; # expression before comma evaluates to a function which is missing
                 # an argument list
        /w14546; # function call before comma missing argument list
        /w14547; # 'operator': operator before comma has no effect; expected
                 # operator with side-effect
        /w14549; # 'operator': operator before comma has no effect; did you intend
                 # 'operator'?
        /w14555; # expression has no effect; expected expression with side- effect
        /w14619; # pragma warning: there is no warning number 'number'
        /w14640; # Enable warning on thread un-safe static member initialization
        /w14826; # Conversion from 'type1' to 'type_2' is sign-extended. This may
                 # cause unexpected runtime behavior.
        /w14928; # illegal copy-initialization; more than one user-defined
                 # conversion has been implicitly applied
        /wd4244; # 'argument': conversion from 'int' to 'unsigned char', possible
                 # loss of data # This one is sort of required for gtest.
        /WX;
    >
    $<$<BOOL:${STRICT_OPTIONS}>:
        -Werror;
    >
    $<$<BOOL:${COMPILER_SUPPORTS_WARNING_WEAK_VTABLES}>:
        -Wweak-vtables; # https://llvm.org/docs/CodingStandards.html#provide-a-virtual-method-anchor-for-classes-in-headers
    >
    $<$<BOOL:${COMPILER_SUPPORTS_WDATE_TIME}>:
        -Wdate-time; # avoid timestamps in binary for reproducible builds, not added until GCC 4.9
    >
    $<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<NOT:$<BOOL:${HAIKU}>>>:
        -Wstack-protector;
    >
)

celtera/avendish cmake/avendish.disableexceptions.cmake :17

target_compile_options(DisableExceptions INTERFACE
    -fno-exceptions
    -fno-rtti
    -fno-unwind-tables
    -fno-asynchronous-unwind-tables
  )

qt/qtbase cmake/QtFlagHandlingHelpers.cmake :406

target_compile_options("${target}" INTERFACE "${utf8_flags}")

jingma-git/RealSkel external/libigl/cmake/libigl.cmake :87

target_compile_options(igl_common INTERFACE /MP /bigobj)

mmp/pbrt-v4 CMakeLists.txt :151

target_compile_options (
    pbrt_warnings
    INTERFACE
        "$<$<CXX_COMPILER_ID:MSVC>:$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler >/wd4244>" # int -> float conversion
        "$<$<CXX_COMPILER_ID:MSVC>:$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler >/wd4267>" # size_t -> int conversion
        "$<$<CXX_COMPILER_ID:MSVC>:$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler >/wd4305>" # double constant assigned to float
        "$<$<CXX_COMPILER_ID:MSVC>:$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler >/wd4552>" # result of expression not used
        "$<$<CXX_COMPILER_ID:MSVC>:$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler >/wd4838>" # double -> int conversion
        "$<$<CXX_COMPILER_ID:MSVC>:$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler >/wd4843>" # double -> float conversion
        "$<$<CXX_COMPILER_ID:MSVC>:$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler >/wd26451>" # arithmetic on 4-byte value, then cast to 8-byte
        "$<$<CXX_COMPILER_ID:MSVC>:$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler >/wd26495>" # uninitialized member variable
        "$<$<CXX_COMPILER_ID:MSVC>:$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler >/wd4334>" # 32 to 64 bit displacement
        "$<$<CXX_COMPILER_ID:MSVC>:$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler >/wd4146>" # NanoVDB: unary minus operator applied to unsigned type, result still unsigned
)

Qihoo360/tensornet cmake/FindTensorflow.cmake :121

target_compile_options(Tensorflow::pybind11 INTERFACE ${Tensorflow_COMPILE_OPTIONS})

dufernst/LegionCore-7.3.5 cmake/compiler/clang/settings.cmake :42

target_compile_options(trinity-compile-option-interface
    INTERFACE
      -fPIC)

BehaviorTree/BehaviorTree.CPP 3rdparty/lexy/src/CMakeLists.txt :183

target_compile_options(lexy_dev INTERFACE -pedantic-errors -Werror -Wall -Wextra -Wconversion -Wsign-conversion)

abeimler/ecs_benchmark cmake/MoreProjectOptions.cmake :2

target_compile_options(project_options INTERFACE $<$<CXX_COMPILER_ID:MSVC>:/external:anglebrackets /external:W0>)

Dreamtowards/Ethertia lib/entt-3.12.2/CMakeLists.txt :220

target_compile_options(EnTT BEFORE INTERFACE -stdlib=libc++)

project-chip/connectedhomeip config/telink/app/enable-gnu-std.cmake :2

target_compile_options(gnu17
    INTERFACE 
        $<$<COMPILE_LANGUAGE:CXX>:-std=gnu++17>
        -D_DEFAULT_SOURCE)

rbfx/rbfx Source/ThirdParty/Diligent/CMakeLists.txt :371

target_compile_options(Diligent-BuildSettings INTERFACE
        "-pthread"
        "-mbulk-memory"
    )

ImJimmi/JIVE cmake/jive_code_coverage.cmake :14

target_compile_options(jive_code_coverage
                           INTERFACE --coverage
    )

KratosMultiphysics/Kratos external_libraries/vexcl/CMakeLists.txt :92

target_compile_options(Common INTERFACE
    # g++
    $<$<CXX_COMPILER_ID:GNU>:$<BUILD_INTERFACE:-Wall>>
    $<$<CXX_COMPILER_ID:GNU>:-Wno-missing-braces>
    $<$<CXX_COMPILER_ID:GNU>:-Wno-deprecated-declarations>
    $<$<CXX_COMPILER_ID:GNU>:-Wno-ignored-attributes>
    $<$<CXX_COMPILER_ID:GNU>:-Wno-unused-local-typedefs>
    $<$<CXX_COMPILER_ID:GNU>:-Wno-variadic-macros>
    # Clang
    $<$<CXX_COMPILER_ID:Clang>:$<BUILD_INTERFACE:-Wall>>
    $<$<CXX_COMPILER_ID:Clang>:-Wno-missing-braces>
    $<$<CXX_COMPILER_ID:Clang>:-Wno-deprecated-declarations>
    $<$<CXX_COMPILER_ID:Clang>:-Wno-ignored-attributes>
    # MSVC
    $<$<CXX_COMPILER_ID:MSVC>:/bigobj>
    $<$<CXX_COMPILER_ID:MSVC>:/wd4003>
    $<$<CXX_COMPILER_ID:MSVC>:/wd4996>
    )

DiligentGraphics/DiligentTools NativeApp/CMakeLists.txt :456

target_compile_options(Diligent-NativeAppBase INTERFACE /wd4189 /wd4063)

logicalclocks/rondb storage/ndb/rest-server2/extra/simdjson/simdjson-3.12.0/cmake/developer-options.cmake :146

target_compile_options(simdjson-internal-flags INTERFACE /W0 /sdl)

eteran/cpp-utilities defaults/CMakeLists.txt :6

target_compile_options(cpp-utilities-defaults
INTERFACE
	-Werror
)

Jackarain/proxy third_party/boost/libs/stl_interfaces/CMakeLists.txt :102

target_compile_options(stl_interfaces INTERFACE -Wall)

m-schuetz/SimLOD libs/fmt/CMakeLists.txt :31

target_compile_options(${target}
      PRIVATE /interface /ifcOutput ${BMI}
      INTERFACE /reference fmt=${BMI})

eliemichel/WebGPU-distribution emdawnwebgpu/CMakeLists.txt :73

target_compile_options(webgpu INTERFACE
	"--use-port=${emdawnwebgpu_ROOT}/emdawnwebgpu.port.py"
)

polyfem/polyfem cmake/polyfem/polyfem_warnings.cmake :166

target_compile_options(polyfem_warnings INTERFACE ${POLYFEM_WARNING_FLAGS})

darktable-org/rawspeed cmake/src-dependencies.cmake :102

target_compile_options(RawSpeed::OpenMP_CXX INTERFACE ${OPENMP_VERSION_SPECIFIER})

fktn-k/fkYAML tests/unit_test/CMakeLists.txt :191

target_compile_options(
    unit_test_config
    INTERFACE
      -O0        # no optimization
      -g         # generate debug info
      --coverage # set all required flags to generate code coverage data
  )

libjxl/libjxl cmake/FindLCMS2.cmake :50

target_compile_options(lcms2 INTERFACE ${PC_LCMS2_CFLAGS_OTHER})

LensPlaysGames/LensorCompilerCollection CMakeLists.txt :94

target_compile_options(options INTERFACE
            $<$<CONFIG:RELEASE>:-march=native>
        )

phisko/kengine CMakeLists.txt :12

target_compile_options(kengine_include INTERFACE /bigobj)

isce-framework/isce3 .cmake/Warnings.cmake :72

target_compile_options(${target} INTERFACE
            $<$<COMPILE_LANGUAGE:${lang}>:${${lang}_WARNINGS}>)

QMCPACK/qmcpack CMake/IntelDPCPPConfig-modified.cmake :308

target_compile_options(OneAPI::DPCPP-device INTERFACE ${SYCL_FLAGS})

mayataka/robotoc CMakeLists.txt :96

target_compile_options(coverage_config INTERFACE
      -O0        
      -g         
      --coverage 
    )

cvet/fonline ThirdParty/SDL/CMakeLists.txt :3364

target_compile_options(SDL3_Headers
    INTERFACE
      "$<INSTALL_INTERFACE:SHELL:-F $<INSTALL_PREFIX>>"
  )

trailofbits/uthenticode src/CMakeLists.txt :18

target_compile_options("${PROJECT_NAME}" INTERFACE -Wall -Wextra -pedantic -Werror)

INET-RC/GeoMX 3rdparty/onnx-tensorrt/third_party/onnx/third_party/pybind11/CMakeLists.txt :95

target_compile_options(pybind11 INTERFACE $<BUILD_INTERFACE:${PYBIND11_CPP_STANDARD}>)

OriginHubAI/MyScaleDB contrib/openssl-cmake/CMakeLists.txt :42

target_compile_options(global-group INTERFACE "-Wno-deprecated-declarations")

nRF24/RF24 cmake/Sanitizers.cmake :7

target_compile_options(${project_name} INTERFACE --coverage -O0 -g)

ovsky/sumi-emu externals/CMakeLists.txt :57

target_compile_options(microprofile INTERFACE "-Wno-array-bounds")

apple/foundationdb cmake/FindCoroutines.cmake :269

target_compile_options(std::coroutines INTERFACE ${_CXX_COROUTINES_EXTRA_FLAGS})

alibaba/hiactor CMakeLists.txt :364

target_compile_options (hiactor_private
  INTERFACE ${Hiactor_PRIVATE_CXX_FLAGS})

PCSX2/pcsx2 3rdparty/fmt/CMakeLists.txt :369

target_compile_options(fmt-header-only INTERFACE $<$<AND:$<COMPILE_LANGUAGE:CXX>,$<CXX_COMPILER_ID:MSVC>>:/utf-8>)

OFFTKP/felix86 external/fmt/CMakeLists.txt :31

target_compile_options(${target}
      PRIVATE /interface /ifcOutput ${BMI}
      INTERFACE /reference fmt=${BMI})

libgeos/geos CMakeLists.txt :297

target_compile_options(geos_developer_cxx_flags
  INTERFACE
    $<$<CXX_COMPILER_ID:MSVC>:-W4>  # consider -analyze
    $<$<OR:$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:-Werror -pedantic -Wall -Wextra -Wno-long-long -Wcast-align -Wconversion -Wsign-conversion -Wchar-subscripts -Wdouble-promotion -Wpointer-arith -Wformat -Wformat-security -Wshadow -Wuninitialized -Wunused-parameter -fno-common>
    $<$<CXX_COMPILER_ID:GNU>:-fno-implicit-inline-templates -Wno-psabi -Wsuggest-attribute=format>
    $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:-Wno-unknown-warning-option>
    )

jinja2cpp/Jinja2Cpp thirdparty/thirdparty-internal.cmake :40

target_compile_options(boost_unordered INTERFACE -Wno-error=deprecated-declarations)

Bam4d/Griddly cmake/settings/Sanitizers.cmake :5

target_compile_options(${project_name} INTERFACE --coverage -O0 -g)

openc2e/openc2e cmake/FindSDL2_mixer.cmake :6

target_compile_options(sdl2_mixer INTERFACE "SHELL:-s USE_SDL_MIXER=2")

ddemidov/vexcl CMakeLists.txt :239

target_compile_options(JIT INTERFACE ${OpenMP_CXX_FLAGS})

fastfloat/fast_float CMakeLists.txt :65

target_compile_options(fast_float INTERFACE /permissive-)

trilinos/Trilinos packages/kokkos-kernels/cmake/kokkoskernels_tpls.cmake :86

TARGET_COMPILE_OPTIONS(${NAME} INTERFACE ${TPL_COMPILE_OPTIONS})

rbock/sqlpp11 tests/core/usage/CMakeLists.txt :29

target_compile_options(sqlpp11_testing INTERFACE -Wall -Wextra -pedantic)

fn2006/PollyMC cmake/CompilerWarnings.cmake :133

target_compile_options(
    ${_project_name}
    INTERFACE # C++ warnings
              $<$<COMPILE_LANGUAGE:CXX>:${PROJECT_WARNINGS_CXX}>
              # C warnings
              $<$<COMPILE_LANGUAGE:C>:${PROJECT_WARNINGS_C}>
   )

unmojang/FjordLauncher cmake/CompilerWarnings.cmake :141

target_compile_options(
    ${_project_name}
    INTERFACE # C++ warnings
              $<$<COMPILE_LANGUAGE:CXX>:${PROJECT_WARNINGS_CXX}>
              # C warnings
              $<$<COMPILE_LANGUAGE:C>:${PROJECT_WARNINGS_C}>
   )

FreesmTeam/FreesmLauncher cmake/CompilerWarnings.cmake :141

target_compile_options(
    ${_project_name}
    INTERFACE # C++ warnings
              $<$<COMPILE_LANGUAGE:CXX>:${PROJECT_WARNINGS_CXX}>
              # C warnings
              $<$<COMPILE_LANGUAGE:C>:${PROJECT_WARNINGS_C}>
   )

facebookarchive/Polygames src/third_party/pybind11/CMakeLists.txt :108

target_compile_options(module INTERFACE -fvisibility=hidden)

pantor/ruckig CMakeLists.txt :68

target_compile_options(test-dependencies INTERFACE -Wall -Wextra)

Rosalie241/RMG Source/3rdParty/fmt/CMakeLists.txt :31

target_compile_options(${target}
      PRIVATE /interface /ifcOutput ${BMI}
      INTERFACE /reference fmt=${BMI})

xrootd/xrootd src/XrdCms/CMakeLists.txt :59

target_compile_options(cmsd INTERFACE -msse4.2)

cpc/hipcl cxxopts/CMakeLists.txt :64

target_compile_options(cxxopts INTERFACE ${ICU_CFLAGS})

twhl-community/halflife-unified-sdk utils/CMakeLists.txt :44

target_compile_options(hl_sdk_utils_shared INTERFACE
	$<$<CXX_COMPILER_ID:MSVC>:/W4>
	$<$<CXX_COMPILER_ID:MSVC>:/wd4244 /wd4305 /wd26451>)

swiftlang/swift Runtimes/Overlay/Cxx/libstdcxx/CMakeLists.txt :3

target_compile_options(libstdcxx INTERFACE
  "$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xcc -fmodule-map-file=${CMAKE_CURRENT_SOURCE_DIR}/libstdcxx.modulemap>")

rl-tools/rl-tools CMakeLists.txt :126

target_compile_options(rl_tools_core_definitions INTERFACE
            $<$<AND:$<OR:$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>,$<NOT:$<COMPILE_LANGUAGE:CUDA>>>:
            -ftemplate-backtrace-limit=0
            >
    )

ompl/ompl CMakeModules/VampConfig.cmake :128

target_compile_options(vamp_cpp INTERFACE ${VAMP_SIMD_FLAGS})

adobe/lagrange cmake/lagrange/lagrange_warnings.cmake :222

target_compile_options(lagrange_warnings INTERFACE ${options})

glKarin/com.n0n3m4.diii4a Q3E/src/main/jni/deplibs/SDL2/CMakeLists.txt :53

target_compile_options(sdl-build-options INTERFACE "$<$<COMPILE_LANGUAGE:CXX>:-ZW>" "$<$<COMPILE_LANGUAGE:CXX>:-EHsc>")