target_link_options(<target> [BEFORE] <INTERFACE|PUBLIC|PRIVATE> [items1...] [<INTERFACE|PUBLIC|PRIVATE> [items2...] ...])
target_link_options(<target> [BEFORE] <INTERFACE|PUBLIC|PRIVATE> [items1...] [<INTERFACE|PUBLIC|PRIVATE> [items2...] ...])
target_link_options(ncine PUBLIC ${EMSCRIPTEN_LINKER_OPTIONS})
target_link_options(${target_name} PUBLIC ${f3d_link_options_public})
target_link_options(PrusaSlicer PUBLIC "-Wl,-allow-multiple-definition")
target_link_options(UnitTests PUBLIC -sSTACK_SIZE=1048576 -sINITIAL_MEMORY=134217728)
target_link_options(${variant_name} PUBLIC -Wl,-T,${LINKER_SCRIPT})
target_link_options(BambuStudio PUBLIC "-Wl,-allow-multiple-definition")
target_link_options(OrcaSlicer PUBLIC "-Wl,-allow-multiple-definition")
target_link_options(${HIDAPI_TARGET} PUBLIC -fsanitize=address)
target_link_options(UnitTests PUBLIC "/SUBSYSTEM:CONSOLE")
target_link_options(${TG} PUBLIC /DEBUG:FULL /DYNAMICDEOPT)
target_link_options (OcctImportJS PUBLIC -sMODULARIZE=1)
target_link_options(${LIBRARY_NAME} PUBLIC $<$<LINK_LANGUAGE:CXX>:${KOKKOS_LINK_OPTIONS}>)
target_link_options(fuzzhelper PUBLIC "-fsanitize=fuzzer")
target_link_options(udpcap PUBLIC delayimp.lib)
target_link_options(${target} PUBLIC "-fsanitize=address")
target_link_options(${PROJECT_NAME}
PUBLIC "$<$<PLATFORM_ID:Unix>:-Wl,--exclude-libs,ALL;>")
target_link_options(em_ngs PUBLIC -sALLOW_MEMORY_GROWTH)
target_link_options(trace PUBLIC "-Wl,--wrap=__cxa_throw")
target_link_options(${proto_target} PUBLIC -fno-sanitize=thread)
TARGET_LINK_OPTIONS(
test-runner
PUBLIC "-Wl,--allow-multiple-definition"
)
target_link_options(Jolt PUBLIC -sMEMORY64)
target_link_options(dbg PUBLIC
"/DELAYLOAD:TitanEngine.dll"
)
target_link_options(${target} PUBLIC "LINKER:-no_warn_duplicate_libraries")
target_link_options(main PUBLIC ${UNIT_TEST_LINK_OPTIONS})
target_link_options(vineyard_graph PUBLIC "-fopenmp")
target_link_options(dynui PUBLIC $<$<CXX_COMPILER_ID:MSVC>:/WHOLEARCHIVE:dynui>)
target_link_options(${PROJECT_NAME} PUBLIC -fsanitize=address)
target_link_options(hyperhdr PUBLIC /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup)
target_link_options(${LIBRARY_TARGET_NAME} PUBLIC ${LIBRARY_LINK_OPTIONS})
target_link_options(fuzzhelper PUBLIC "-fsanitize=fuzzer")
target_link_options(hpx_async_sycl PUBLIC -fsycl ${HPX_WITH_SYCL_FLAGS})
target_link_options(CppInterOpTests
PUBLIC "SHELL: -fexceptions"
PUBLIC "SHELL: -s MAIN_MODULE=1"
PUBLIC "SHELL: -s WASM_BIGINT"
PUBLIC "SHELL: -s ALLOW_MEMORY_GROWTH=1"
PUBLIC "SHELL: -s STACK_SIZE=32mb"
PUBLIC "SHELL: -s INITIAL_MEMORY=128mb"
PUBLIC "SHELL: --preload-file ${ESCAPED_SYSROOT_PATH}/include@/include"
PUBLIC "SHELL: --emrun"
)
target_link_options(${TARGET} PUBLIC ${OPTION})
target_link_options(${EXE_NAME} PUBLIC -fsanitize=address)
target_link_options(libkiva PUBLIC -fopenmp)
target_link_options(${RIPES_LIB} PUBLIC -sASYNCIFY -Os)
target_link_options(gfxrecon_application_test PUBLIC "LINKER:/Include:_gfxrecon_disable_popup_result")
target_link_options( nanodbc PUBLIC -stdlib=libc++ -lc++abi )
target_link_options(fuzz_${testname} PUBLIC -fsanitize=fuzzer)
target_link_options(AppLoopAndroid
PUBLIC
-u Java_com_google_androidgamesdk_GameActivity_initializeNativeCode
)
target_link_options(${lib_name} PUBLIC
"-fsanitize=${args_SANITIZER_OPTIONS}"
-fno-omit-frame-pointer)
target_link_options(${target} PUBLIC -fsanitize=realtime)
target_link_options(${target} PUBLIC "${_link_flags}")
target_link_options(co_context
PUBLIC -fsanitize=undefined,address,leak)
target_link_options(mixxx-lib PUBLIC -sASYNCIFY)
target_link_options(draggableicons PUBLIC -sASYNCIFY -Os)
target_link_options(dxclib PUBLIC -mconsole -municode)
target_link_options(${TARGET} PUBLIC ${flags_list})
target_link_options(
tensornet
PUBLIC
-fuse-ld=gold
$<$<CONFIG:Release,MinSizeRel,RelWithDebInfo>:-s>
$<$<CONFIG:Debug>:LINKER:-z,relro,-z,now>
PRIVATE
LINKER:-as-needed)
target_link_options(QMLComponents PUBLIC -lrt)
target_link_options(UnitTests PUBLIC "/SUBSYSTEM:CONSOLE")
target_link_options(${TargetName}
PUBLIC $<$<CXX_COMPILER_ID:MSVC>:/FORCE:MULTIPLE>
PUBLIC $<$<CXX_COMPILER_ID:MSVC>:/DELAYLOAD:WinPixEventRuntime.dll>
# via USD
PUBLIC $<$<CXX_COMPILER_ID:MSVC>:/NODEFAULTLIB:${PXR_NODEFAULTLIBS}>
# Note that since MSVC 2019, /DEBUG:FULL linking times have improved significantly,
# /DEBUG:FASTLINK isn't always faster than /DEBUG:FULL.
# We'd rather have more clear debug picture than a small chance of faster building.
PRIVATE $<$<AND:$<CXX_COMPILER_ID:MSVC>,$<CONFIG:Release>>:/DEBUG:FULL>
# OPT:REF can reduce the size of executable, for it eliminates functions and data that are never referenced.
PRIVATE $<$<AND:$<CXX_COMPILER_ID:MSVC>,$<CONFIG:Release>>:/OPT:REF>
# OPT:NOICF makes it easier to read stack traces and set breakpoints in functions.
PRIVATE $<$<AND:$<CXX_COMPILER_ID:MSVC>,$<CONFIG:Release>>:/OPT:ICF>
)
target_link_options(${COMPONENT_LIB}
PUBLIC
"-T${PIGWEED_ROOT}/pw_tokenizer/pw_tokenizer_linker_sections.ld"
"-L${PIGWEED_ROOT}/pw_tokenizer"
)
target_link_options(pybridge
PUBLIC
-force_load ${MLIR_CAPI_COMBINED_LIB}
)
target_link_options(Diligent-GraphicsEngineOpenGL-static PUBLIC "SHELL: -s FULL_ES3=1 -s USE_PTHREADS=1")
target_link_options(
${_name}
PUBLIC
"$<$<AND:$<C_COMPILER_ID:AppleClang>,$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,15.0>>:LINKER:-no_warn_duplicate_libraries>"
)
target_link_options(PEGParser PUBLIC -fprofile-arcs -ftest-coverage)
target_link_options(${HIDAPI_TARGET} PUBLIC -fsanitize=address)
target_link_options(cryptoTools PUBLIC -pthread)
target_link_options(AusweisAppUiFunctional PUBLIC -exported_symbols_list ${CMAKE_CURRENT_SOURCE_DIR}/exported_symbols.txt)
target_link_options(operon_test PUBLIC "-Wl,--no-undefined")
target_link_options(OpenExrImageConverter PUBLIC "SHELL:-s DISABLE_EXCEPTION_CATCHING=0")
target_link_options(${_target} PUBLIC ${ML_SHARED_LINKER_FLAGS})
target_link_options(${ARGV0} PUBLIC ${CM7_LINK_FLAGS} ${LINKER_SCRIPT})
target_link_options(${target_name} PUBLIC -fsanitize=${LIST_OF_SANITIZERS})
target_link_options(
${LIBRARY}
PUBLIC
"$<$<PLATFORM_ID:Darwin>:-Wl,-U,_git_branch>"
"$<$<PLATFORM_ID:Darwin>:-Wl,-U,_git_description>"
"$<$<PLATFORM_ID:Darwin>:-Wl,-U,_link_date>"
"$<$<PLATFORM_ID:Darwin>:-Wl,-U,_executable_name>"
)
target_link_options(Storage PUBLIC ${REALM_USE_FAST_LINKER})
target_link_options(dwarfs_tool PUBLIC -Wl,--wrap=memcpy)
target_link_options(basic-zlib PUBLIC -Wl,--compress-debug-sections=zlib)
target_link_options(digidocpp PUBLIC "/guard:cf")
target_link_options(${target_name} PUBLIC -static-libstdc++ -static-libgcc)
target_link_options(licensecc_static PUBLIC --coverage)
target_link_options(${HIDAPI_TARGET} PUBLIC -fsanitize=address)
target_link_options(brisk-core PUBLIC $<BUILD_INTERFACE:-NATVIS:${CMAKE_CURRENT_SOURCE_DIR}/types.natvis>
$<INSTALL_INTERFACE:-NATVIS:$<INSTALL_PREFIX>/${CMAKE_INSTALL_LIBDIR}/types.natvis>)
target_link_options(datachannel-wasm PUBLIC
"SHELL:--js-library \"${CMAKE_CURRENT_SOURCE_DIR}/wasm/js/webrtc.js\""
"SHELL:--js-library \"${CMAKE_CURRENT_SOURCE_DIR}/wasm/js/websocket.js\"")
target_link_options(stdgpu PUBLIC "${STDGPU_HIP_DEVICE_LINKER_FLAGS}")
target_link_options(${_AX_CORE_LIB} PUBLIC -sGL_ENABLE_GET_PROC_ADDRESS)
target_link_options(fdbclient_swift PUBLIC "$<TARGET_OBJECTS:flow_swift>")
target_link_options(${CORE_LIBRARY_TARGET} PUBLIC -Wl,--wrap=malloc,--wrap=free,--wrap=realloc)
target_link_options(crispy-core PUBLIC -rdynamic)
target_link_options(fuzzhelper PUBLIC "-fsanitize=fuzzer")
target_link_options (libgui PUBLIC -mwindows)
target_link_options(eternity PUBLIC
"/DYNAMICBASE:NO" "/SAFESEH:NO"
"$<$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>,$<CONFIG:MinSizeRel>>:/MAP:$(OutDir)$(TargetName).map>"
"$<$<CONFIG:Release>:/DEBUG>")
target_link_options(Library PUBLIC /PROFILE)
target_link_options(bpftime_nv_attach_impl PUBLIC "-Wl,--whole-archive" "$<TARGET_FILE:bpftime_nv_attach_impl>" "-Wl,--no-whole-archive")
target_link_options(${testname} PUBLIC -fsanitize=fuzzer)
target_link_options(${LIBRARY_NAME} PUBLIC $<$<LINK_LANGUAGE:CXX>:${KOKKOS_LINK_OPTIONS}>)
target_link_options(${add_coverage_to_target_TARGET}
PUBLIC
$<$<COMPILE_LANGUAGE:CXX>:--coverage>)
target_link_options(snitch_approval_tests PUBLIC
"SHELL:--preload-file ${PROJECT_SOURCE_DIR}/tests/approval_tests/data@data")
target_link_options(MathLib PUBLIC "LINKER:--no-as-needed")
target_link_options(sealtest PUBLIC -fsanitize=address)
target_link_options(quda PUBLIC $<$<CUDA_COMPILER_ID:Clang>: --cuda-path=${CUDAToolkit_TARGET_DIR}>)
target_link_options(common_cli PUBLIC /DEBUG)
target_link_options(${name} PUBLIC "SHELL:-Xlinker -add_ast_path -Xlinker ${module_file}")
target_link_options(vk_layer_validation_tests PUBLIC LINKER:--version-script=${CMAKE_CURRENT_SOURCE_DIR}/android.map)
target_link_options(rlottie PUBLIC -fsanitize=address)
target_link_options(a2lparser_ext PUBLIC -flto=auto)
target_link_options(${name} PUBLIC
"SHELL:-s ENVIRONMENT=web,webview,worker"
--emrun
)
target_link_options(addtiffo PUBLIC "-Wl,--shared-memory")
target_link_options(ginkgo_dpcpp PUBLIC -fsycl-device-code-split=per_kernel)