target_compile_options(<target> [BEFORE] <INTERFACE|PUBLIC|PRIVATE> [items1...] [<INTERFACE|PUBLIC|PRIVATE> [items2...] ...])
target_compile_options(<target> [BEFORE] <INTERFACE|PUBLIC|PRIVATE> [items1...] [<INTERFACE|PUBLIC|PRIVATE> [items2...] ...])
target_compile_options(ncine PUBLIC $<$<CONFIG:Debug>:-O1 -g -fsanitize=undefined -fno-omit-frame-pointer>)
target_compile_options(loader-unknown-chain PUBLIC "$<$<CONFIG:DEBUG>:${LOCAL_C_FLAGS_REL}>")
target_compile_options(easy_profiler PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-std=gnu++11>)
target_compile_options (${TARGET_NAME} PUBLIC /utf-8)
target_compile_options(MeshSDFilter PUBLIC "$<$<CONFIG:RELEASE>:${OpenMP_CXX_FLAGS}>")
target_compile_options(${target_name} PUBLIC ${f3d_compile_options_public} PRIVATE ${f3d_compile_options_private})
target_compile_options(Jolt PUBLIC /arch:AVX512)
target_compile_options( ${target}
PUBLIC
$<$<CXX_COMPILER_ID:MSVC>:/EHs-c-;/D_HAS_EXCEPTIONS=0>
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:AppleClang>>:-fno-exceptions>
)
target_compile_options( shaderc PUBLIC $<$<CONFIG:RELEASE>:-O2 -DNDEBUG> )
target_compile_options(${PROJECT_NAME} PUBLIC ${HK_COMPILER_FLAGS})
target_compile_options(
${PROJECT_NAME}
PRIVATE /MP
/W4
/wd4251
/wd4592
/wd4127
/Zm200
$<$<CONFIG:Release>:
/Gw
/GS-
/GL
/GF
>
PUBLIC
)
target_compile_options(LowLevel PUBLIC "-malign-double")
target_compile_options(zeno
PUBLIC $<$<COMPILE_LANGUAGE:CXX>: $<IF:$<CXX_COMPILER_ID:MSVC>, /utf-8, >>
)
target_compile_options (OcctImportJS PUBLIC "$<$<CONFIG:Debug>:-gsource-map>")
target_compile_options(
${LIBRARY_NAME} PUBLIC $<$<COMPILE_LANGUAGE:${KOKKOS_COMPILE_LANGUAGE}>:${KOKKOS_COMPILE_OPTIONS}>
)
target_compile_options( ${target}
PUBLIC
$<$<CXX_COMPILER_ID:MSVC>:/EHs-c-;/D_HAS_EXCEPTIONS=0>
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:AppleClang>>:-fno-exceptions>
)
target_compile_options(${target} PUBLIC "-fsanitize=memory")
target_compile_options(filesystem_test PUBLIC --coverage "-Wa,-mbig-obj")
target_compile_options(${PROJECT_NAME} PUBLIC "$<$<CXX_COMPILER_ID:AppleClang,Clang,GNU>:-fvisibility=hidden>")
target_compile_options(${target} PUBLIC
$<$<BOOL:${has_sse}>:-msse>
$<$<BOOL:${has_sse2}>:-msse2>
$<$<BOOL:${has_sse_fp}>:-mfpmath=sse>
$<$<BOOL:${NATIVE}>:-march=native>
$<$<BOOL:${STRICT}>:-Wall -Wextra -Werror -Wpedantic>
)
target_compile_options(ngstd PUBLIC ${NGSOLVE_COMPILE_OPTIONS})
target_compile_options(wpimath PUBLIC /utf-8 /bigobj)
target_compile_options(${PROJECT_NAME} PUBLIC -fexceptions)
target_compile_options(ftl PUBLIC -DNUM_WAITING_FIBER_SLOTS=${FTL_NUM_WAITING_FIBER_SLOTS})
target_compile_options(Jolt PUBLIC /arch:AVX512)
target_compile_options(core_libs_supl PUBLIC $<$<COMPILE_LANGUAGE:C>:${MY_C_FLAGS}>)
target_compile_options(performous PUBLIC -Werror)
target_compile_options(acsdkAssetsMocks PUBLIC
-Wno-deprecated-declarations
)
target_compile_options(
score_plugin_avnd
PUBLIC
${COROUTINES_FLAG}
)
target_compile_options(google_cloud_cpp_common
PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG})
target_compile_options(${target} PUBLIC "-w")
TARGET_COMPILE_OPTIONS(${_target} PUBLIC -DSOURCE_DIR="${CMAKE_SOURCE_DIR}/tests/${_dir}/")
target_compile_options(${target_name} PUBLIC -Wno-register)
target_compile_options(utils_avx512 PUBLIC "-mf16c;-mavx512f;-mavx512dq;-mavx512bw")
target_compile_options(
DataFrame
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/bigobj>
$<$<CXX_COMPILER_ID:MSVC>:/wd4251>
$<$<CXX_COMPILER_ID:MSVC>:/wd5030>
$<$<CXX_COMPILER_ID:MSVC>:/wd5222>
# TODO: fix these warnings
PUBLIC $<$<CXX_COMPILER_ID:MSVC>:/wd4244>
$<$<CXX_COMPILER_ID:MSVC>:/wd4267>
$<$<CXX_COMPILER_ID:MSVC>:/wd4996>
)
target_compile_options( InterSpecLib PUBLIC $<$<CONFIG:Release>:/MP> )
target_compile_options(filesystem_test PUBLIC --coverage)
target_compile_options(CovidSim PUBLIC "SHELL:-fp-model precise")
target_compile_options(${target_name}
PUBLIC ${COMPILE_OPTIONS_PUBLIC}
PRIVATE ${COMPILE_OPTIONS_PRIVATE}
INTERFACE ${COMPILE_OPTIONS_INTERFACE}
${ARG_COMPILE_OPTIONS})
target_compile_options(seastar
PUBLIC
# required by any target that links to seastar
"-Wno-non-virtual-dtor"
PRIVATE
"-DSEASTAR_NO_EXCEPTION_HACK"
"-Wno-error"
"-Wno-sign-compare"
"-Wno-attributes"
"-Wno-pessimizing-move"
"-Wno-address-of-packed-member")
target_compile_options(${target}
PUBLIC
$<$<CXX_COMPILER_ID:MSVC>:/EHs-c-;/D_HAS_EXCEPTIONS=0>
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:AppleClang>>:-fno-exceptions>
)
target_compile_options(tscore PUBLIC "-mcx16")
target_compile_options(${target} PUBLIC ${comple_option})
target_compile_options(yocto PUBLIC -Wall -Wno-conversion -Wno-parentheses -Wno-sign-conversion -Wno-sign-compare -Wno-implicit-float-conversion -Wno-unused-variable)
target_compile_options(cling-demo PUBLIC -DLLVMDIR="${LLVM_INSTALL_PREFIX}" -I${LLVM_INSTALL_PREFIX}/include)
target_compile_options(${EXE_NAME} PUBLIC -fsanitize=address)
target_compile_options(opcuaprotocol PUBLIC ${ADDITIONAL_PUBLIC_COMPILE_OPTIONS})
TARGET_COMPILE_OPTIONS(${TARGET_NAME}
PUBLIC ${public_flags}
)
target_compile_options(fmt PUBLIC "-Wa,-mbig-obj")
target_compile_options(fuzz_bignum PUBLIC -fsanitize=fuzzer)
TARGET_COMPILE_OPTIONS(mysqlgcs PUBLIC ${HAS_WARN_FLAG})
target_compile_options(PUBLIC harness-archive "-pthread")
target_compile_options(${TARGET_NAME} PUBLIC ${TARGET_DEFINITIONS})
target_compile_options(noexceptionstests PUBLIC -fno-exceptions)
target_compile_options(PhotoshopAPI PUBLIC -mavx2)
target_compile_options(${target}
PRIVATE
${DEFAULT_COMPILE_OPTIONS_PRIVATE}
PUBLIC
${DEFAULT_COMPILE_OPTIONS_PUBLIC}
)
target_compile_options( nanodbc PUBLIC -stdlib=libc++ )
target_compile_options(artist PUBLIC "-fobjc-arc")
target_compile_options(${ARGS_NAME} PUBLIC "${ARGS_FLAGS}")
target_compile_options(${libname} PUBLIC -Wno-overloaded-virtual)
target_compile_options(fuzz_${testname} PUBLIC -fsanitize=fuzzer)
target_compile_options (seastar
PUBLIC
# With std::experimental::optional it is easy to hit
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88897. We disable
# -Wmaybe-uninitialized in here since otherwise we would have to
# disable it on many types used inside optional<>.
-Wno-maybe-uninitialized)
target_compile_options(${bypass_lib} PUBLIC -DHAVE_MEMFD_CREATE)
target_compile_options(uvbi-core
PUBLIC
${OSVR_CXX11_FLAGS})
target_compile_options(deprecation_warning_sample PUBLIC "/WX")
target_compile_options(Async++ PUBLIC -fno-exceptions)
target_compile_options(${target}
PUBLIC /MP
)
target_compile_options(${target} PUBLIC ${_PUBLIC_CFLAGS})
target_compile_options(${_target} PUBLIC -Wno-unused-function)
target_compile_options(${name} PUBLIC -fmodules-ts)
target_compile_options(${target_name} PUBLIC
-march=native
)
target_compile_options(mixxx-lib PUBLIC -pedantic)
target_compile_options(${COMPONENT_LIB} PUBLIC -DA2DP_LEGACY_I2S_SUPPORT=0 -DA2DP_I2S_AUDIOTOOLS=1 -DESP32_CMAKE=1 -Wno-error -Wno-format -fpermissive)
target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC "-Wpedantic")
target_compile_options(Avendish
PUBLIC
-std:c++latest
-Zi
"-permissive-"
"-Zc:__cplusplus"
"-Zc:enumTypes"
"-Zc:inline"
"-Zc:preprocessor"
"-Zc:templateScope"
-wd4244 # float -> int lossy conversion warning
-wd4068 # disables warning C4068: unknown pragma 'GCC'
)
target_compile_options(tst_qoffsetstringarray
PUBLIC -fbracket-depth=512)
target_compile_options(
${amr_wind_lib_name} PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-Wno-pass-failed>)
target_compile_options( ${target}
PUBLIC
$<$<CXX_COMPILER_ID:MSVC>:/EHs-c-;/D_HAS_EXCEPTIONS=0>
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>,$<CXX_COMPILER_ID:AppleClang>>:-fno-exceptions>
)
target_compile_options (rgb2spec_opt PUBLIC ${PBRT_CXX_FLAGS})
target_compile_options(entityx PUBLIC $<$<C_COMPILER_ID:Clang,GNU>:-Wno-deprecated-declarations -Wno-ambiguous-reversed-operator>)
target_compile_options(Jolt PUBLIC -mavx -mpopcnt)
target_compile_options(Jolt PUBLIC -mavx2 -mbmi -mpopcnt -mlzcnt -mf16c)
target_compile_options(${COMPONENT_LIB} PUBLIC
"-DCHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=<lib/address_resolve/AddressResolve_DefaultImpl.h>"
)
target_compile_options(example-pmpong PUBLIC -DLIBPMEMOBJ_CPP_PMPONG_FONT_PATH="${font}")
target_compile_options(Urho3D PUBLIC ${VALUE})
target_compile_options(${target_name} PUBLIC /EHsc)
target_compile_options(PEGParser PUBLIC /W4 /WX /wd4456)
target_compile_options(${EXENAME} PUBLIC "-Xcompiler=-pthread")
target_compile_options(${target_name} PUBLIC ${PYBIND11_CPP_STANDARD})
target_compile_options(cryptoTools PUBLIC /arch:AVX2)
target_compile_options(FeLib PUBLIC ${SDL2_CFLAGS} ${SDL2_CFLAGS_OTHER})
TARGET_COMPILE_OPTIONS(mysqlgcs PUBLIC ${HAS_WARN_FLAG})
target_compile_options(${_name} PUBLIC -std=c++11)
target_compile_options(${library_target}
PUBLIC ${GOOGLE_CLOUD_CPP_EXCEPTIONS_FLAG})
target_compile_options(${PROJECT_NAME} PUBLIC /EHsc /bigobj)
target_compile_options(${PROJECT_NAME} PUBLIC "$<$<CONFIG:RELWITHDEBINFO>:${RELWITHDEB_GCC_FLAGS}>")
target_compile_options(operon_test PUBLIC "/std:c++latest")
target_compile_options(riscv PUBLIC "-fsanitize=address,undefined")
target_compile_options(OpenExrImageConverter PUBLIC "SHELL:-s DISABLE_EXCEPTION_CATCHING=0")
target_compile_options(cppparser PUBLIC -Wno-unknown-pragmas)