cmake target_link_options(PUBLIC) examples

c3lang/c3c CMakeLists.txt :513

target_link_options(c3c_wrappers PUBLIC /ignore:4099)

catchorg/Catch2 fuzzing/CMakeLists.txt :15

target_link_options(fuzzhelper PUBLIC "-fsanitize=fuzzer")

projectchrono/chrono src/chrono/CMakeLists.txt :1437

target_link_options(Chrono_core PUBLIC $<$<COMPILE_LANGUAGE:CXX>:/NODEFAULTLIB:msvcrt.lib;/NODEFAULTLIB:msvcrtd.lib;/NODEFAULTLIB:libcmt$<$<NOT:$<CONFIG:Debug>>:d>.lib>)

projectchrono/chrono src/chrono/CMakeLists.txt :1439

target_link_options(Chrono_core PUBLIC $<$<COMPILE_LANGUAGE:CXX>:/NODEFAULTLIB:libcmt.lib;/NODEFAULTLIB:libcmtd.lib;/NODEFAULTLIB:msvcrt$<$<NOT:$<CONFIG:Debug>>:d>.lib>)

projectchrono/chrono src/chrono/CMakeLists.txt :1448

target_link_options(Chrono_core PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-Wl,--export-all-symbols;-Wl,--enable-auto-import;-Wl,--enable-runtime-pseudo-reloc>)

projectchrono/chrono src/chrono/CMakeLists.txt :1457

target_link_options(Chrono_core PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-Wl,-no_compact_unwind>)

google/cppdap CMakeLists.txt :202

target_link_options(${target} PUBLIC "-fsanitize=address")

google/cppdap CMakeLists.txt :205

target_link_options(${target} PUBLIC "-fsanitize=memory")

google/cppdap CMakeLists.txt :208

target_link_options(${target} PUBLIC "-fsanitize=thread")

google/cppdap CMakeLists.txt :343

target_link_options(cppdap-fuzzer PUBLIC "-fsanitize=fuzzer,address")

google/cppdap CMakeLists.txt :346

target_link_options(cppdap-fuzzer PUBLIC "-fsanitize=fuzzer,memory")

google/cppdap CMakeLists.txt :349

target_link_options(cppdap-fuzzer PUBLIC "-fsanitize=fuzzer,thread")

google/cppdap CMakeLists.txt :352

target_link_options(cppdap-fuzzer PUBLIC "-fsanitize=fuzzer")

xissburg/edyn CMakeLists.txt :203

target_link_options(Edyn
    PUBLIC
        $<$<BOOL:${EDYN_ENABLE_SANITIZER}>:-fsanitize=address -fsanitize=undefined>
)

JPeterMugaas/efxc2 CMakeLists.txt :199

target_link_options(fxc PUBLIC "/INCREMENTAL")

embree/embree tutorials/embree_tests/CMakeLists.txt :32

  TARGET_LINK_OPTIONS(embree_tests PUBLIC
  "SHELL:-s ASSERTIONS=1"
  "SHELL:-s ALLOW_MEMORY_GROWTH=1"
  "SHELL:-s PROXY_TO_PTHREAD=1"
  "SHELL:-s EXIT_RUNTIME=1"
  -Wno-pthreads-mem-growth
)

libusb/hidapi CMakeLists.txt :103

target_link_options(${HIDAPI_TARGET} PUBLIC -fsanitize=address)

ispc/ispc CMakeLists.txt :852

target_link_options(${TARGET} PUBLIC ${LINK_OPTIONS_PUBLIC})

ispc/ispc examples/xpu/invoke-sycl-aobench/CMakeLists.txt :61

target_link_options(aobench_sycl_bin PUBLIC
  -fsycl
  -fsycl-targets=spir64
  -Xsycl-target-backend=spir64 "${OCL_OPTIONS_STR} -options \"${OCL_OTHER_OPTIONS_STR}\""
)

InsightSoftwareConsortium/ITK CMake/ITKModuleMacros.cmake :494

target_link_options(${_name} PUBLIC "$<$<AND:$<C_COMPILER_ID:AppleClang>,$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,15.0>>:LINKER:-no_warn_duplicate_libraries>")

jrouwe/JoltPhysics Build/CMakeLists.txt :358

target_link_options(UnitTests PUBLIC -sSTACK_SIZE=1048576 -sINITIAL_MEMORY=134217728)

jrouwe/JoltPhysics Build/CMakeLists.txt :371

target_link_options(UnitTests PUBLIC "/SUBSYSTEM:CONSOLE")

jrouwe/JoltPhysics Build/CMakeLists.txt :399

target_link_options(HelloWorld PUBLIC "/SUBSYSTEM:CONSOLE")

jrouwe/JoltPhysics Build/CMakeLists.txt :402

target_link_options(HelloWorld PUBLIC -sSTACK_SIZE=1048576 -sINITIAL_MEMORY=134217728)

jrouwe/JoltPhysics Build/CMakeLists.txt :413

target_link_options(PerformanceTest PUBLIC "/SUBSYSTEM:CONSOLE")

jrouwe/JoltPhysics Build/CMakeLists.txt :417

target_link_options(PerformanceTest PUBLIC "SHELL:--preload-file ${PHYSICS_REPO_ROOT}/Assets/Human.tof@/Assets/Human.tof")

jrouwe/JoltPhysics Build/CMakeLists.txt :418

target_link_options(PerformanceTest PUBLIC "SHELL:--preload-file ${PHYSICS_REPO_ROOT}/Assets/Human/dead_pose1.tof@/Assets/Human/dead_pose1.tof")

jrouwe/JoltPhysics Build/CMakeLists.txt :419

target_link_options(PerformanceTest PUBLIC "SHELL:--preload-file ${PHYSICS_REPO_ROOT}/Assets/terrain2.bof@/Assets/terrain2.bof")

jrouwe/JoltPhysics Build/CMakeLists.txt :420

target_link_options(PerformanceTest PUBLIC -sSTACK_SIZE=1048576 -sINITIAL_MEMORY=134217728)

jrouwe/JoltPhysics Jolt/Jolt.cmake :646

target_link_options(Jolt PUBLIC -sMEMORY64)

jrouwe/JoltPhysics Jolt/Jolt.cmake :691

target_link_options(Jolt PUBLIC -pthread)

jrouwe/JoltPhysics Jolt/Jolt.cmake :698

target_link_options(Jolt PUBLIC -Wno-limited-postlink-optimizations)

KhronosGroup/KTX CMakeLists.txt :666

target_link_options(${target} PUBLIC -static-libgcc -static-libstdc++)

KhronosGroup/KTX CMakeLists.txt :1010

target_link_options(
    ktx_js
PUBLIC
    ${KTX_EM_COMMON_KTX_LINK_FLAGS}
    "SHELL:-s EXPORT_NAME=createKtxModule"
)

KhronosGroup/KTX CMakeLists.txt :1047

target_link_options(
    ktx_js_read
PUBLIC
    ${KTX_EM_COMMON_KTX_LINK_FLAGS}
    "SHELL:-s EXPORT_NAME=createKtxReadModule"
)

KhronosGroup/KTX CMakeLists.txt :1088

target_link_options(
    msc_basis_transcoder_js
PUBLIC
    ${KTX_EM_COMMON_LINK_FLAGS}
    "SHELL:-s EXPORT_NAME=MSC_TRANSCODER"
    # Re-use ktx's link options
    $<TARGET_PROPERTY:ktx_read,INTERFACE_LINK_OPTIONS>
)

lammps/lammps cmake/Modules/Testing.cmake :51

target_link_options(lammps PUBLIC -fuse-ld=${CMAKE_CUSTOM_LINKER})

lammps/lammps cmake/Modules/Testing.cmake :55

target_link_options(lammps PUBLIC --ld-path=${HAVE_MOLD_LINKER_BIN})

lammps/lammps cmake/Modules/Testing.cmake :57

target_link_options(lammps PUBLIC --ld-path=${HAVE_LLD_LINKER_BIN})

lammps/lammps cmake/Modules/Testing.cmake :59

target_link_options(lammps PUBLIC --ld-path=${HAVE_GOLD_LINKER_BIN})

lammps/lammps cmake/Modules/Testing.cmake :61

target_link_options(lammps PUBLIC --ld-path=${HAVE_BFD_LINKER_BIN})

lammps/lammps cmake/Modules/Testing.cmake :81

target_link_options(lammps PUBLIC --coverage)

lammps/lammps cmake/Modules/Testing.cmake :125

target_link_options(lammps PUBLIC -fsanitize=${ENABLE_SANITIZER})

lammps/lammps lib/kokkos/cmake/kokkos_tribits.cmake :237

target_link_options(${LIBRARY_NAME} PUBLIC $<$<LINK_LANGUAGE:CXX>:${KOKKOS_LINK_OPTIONS}>)

lammps/lammps lib/kokkos/cmake/kokkos_tribits.cmake :241

target_link_options(${LIBRARY_NAME} PUBLIC ${KOKKOS_LINK_OPTIONS})

lammps/lammps unittest/force-styles/CMakeLists.txt :49

target_link_options(style_tests PUBLIC -fsanitize=${ENABLE_SANITIZER})

lfortran/lfortran integration_tests/CMakeLists.txt :72

target_link_options(${name} PUBLIC --backend=${LFORTRAN_BACKEND})

lfortran/lfortran integration_tests/CMakeLists.txt :98

target_link_options(${name} PUBLIC --backend=llvm --target=wasm32-wasi
    -Wl,-zstack-size=52428800 -Wl,--initial-memory=268435456 -Wl,--max-memory=268435456)

lfortran/lfortran integration_tests/CMakeLists.txt :108

target_link_options(${name} PUBLIC --backend=llvm --target=wasm32-unknown-emscripten)

lfortran/lfortran integration_tests/CMakeLists.txt :110

target_link_options(${name} PUBLIC --emcc-embed ${copy_to_bin})

lfortran/lfortran integration_tests/CMakeLists.txt :116

target_link_options(${name} PUBLIC  --generate-object-code ${extra_args})

lfortran/lfortran integration_tests/CMakeLists.txt :146

target_link_options(${name} PUBLIC --openmp --openmp-lib-dir=$ENV{CONDA_PREFIX}/lib ${extra_args})

lfortran/lfortran integration_tests/CMakeLists.txt :170

target_link_options(${name} PUBLIC ${gfortran_args})

analogdevicesinc/libiio CMakeLists.txt :120

target_link_options(iio PUBLIC /DEBUG)

analogdevicesinc/libiio utils/CMakeLists.txt :26

target_link_options(iio_tests_helper PUBLIC /DEBUG)

analogdevicesinc/libiio utils/CMakeLists.txt :47

target_link_options(${test} PUBLIC /DEBUG)

hoene/libmysofa src/CMakeLists.txt :99

target_link_options(mysofa-static PUBLIC --coverage)

hoene/libmysofa src/CMakeLists.txt :145

target_link_options(mysofa-shared PUBLIC --coverage)

rui314/mold third-party/tbb/examples/common/gui/CMakeLists.txt :58

target_link_options(UI_LIB_${PROJECT_NAME} PUBLIC ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.res)

openmopac/mopac CMakeLists.txt :101

target_link_options(mopac-core PUBLIC "-static")

openmopac/mopac CMakeLists.txt :116

target_link_options(mopac PUBLIC "-static")

openmopac/mopac CMakeLists.txt :117

target_link_options(mopac-param PUBLIC "-static")

openmopac/mopac CMakeLists.txt :118

target_link_options(mopac-makpol PUBLIC "-static")

openmopac/mopac CMakeLists.txt :137

target_link_options(mopac-bz PUBLIC "-static")

openmopac/mopac CMakeLists.txt :208

target_link_options(mopac PUBLIC ${BLAS_LINKER_FLAGS} ${LAPACK_LINKER_FLAGS})

openmopac/mopac CMakeLists.txt :209

target_link_options(mopac-param PUBLIC ${BLAS_LINKER_FLAGS} ${LAPACK_LINKER_FLAGS})

openmopac/mopac CMakeLists.txt :220

target_link_options(mopac-core PUBLIC ${OpenMP_Fortran_FLAGS})

openmopac/mopac CMakeLists.txt :257

target_link_options(mopac-core PUBLIC -fprofile-arcs -ftest-coverage)

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

target_link_options(${TARGET_NAME} PUBLIC $<${NB_OPT_SIZE}:-Wl,--gc-sections>)

nanodbc/nanodbc CMakeLists.txt :106

target_link_options( nanodbc PUBLIC -stdlib=libc++ -lc++abi )

uxlfoundation/oneTBB examples/common/gui/CMakeLists.txt :58

target_link_options(UI_LIB_${PROJECT_NAME} PUBLIC ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.res)

openscad/openscad CMakeLists.txt :159

target_link_options(OpenSCAD PUBLIC
  -fexceptions
  -sABORT_ON_WASM_EXCEPTIONS
  -sALLOW_MEMORY_GROWTH=1
  -sDISABLE_EXCEPTION_CATCHING=0
  -sEXIT_RUNTIME=1
  -sEXPORTED_RUNTIME_METHODS=['ENV','ERRNO_CODES','FS','PATH','callMain']
  -sMAXIMUM_MEMORY=4GB

  # -g produces DWARF debug info, which is quite large and may need debugger extensions.
  # Alternatively, can pass -gsource-map -sLOAD_SOURCE_MAP but then variable debugging isn't possible
  $<$<CONFIG:Debug>:-g -O0>
)

openscad/openscad CMakeLists.txt :173

target_link_options(OpenSCAD PUBLIC
  -sENVIRONMENT=web,worker
  -sEXPORT_ES6=1
  -sEXPORT_NAME=OpenSCAD
  -sMODULARIZE=1
)

openscad/openscad CMakeLists.txt :180

target_link_options(OpenSCAD PUBLIC
  -sENVIRONMENT=node,worker
  -sNODEJS_CATCH_EXIT
  -sNODERAWFS

  # Single .js (more elegant for CLI release) is larger than separate .js & .wasm (preferred for web)
  $<$<CONFIG:Release>:-sSINGLE_FILE> 

  # Alternatively to single-file mode, code caching could make repeated runs faster:
  # -sNODE_CODE_CACHING -sWASM_ASYNC_COMPILATION=0
)

ICLDisco/parsec parsec/CMakeLists.txt :216

target_link_options(parsec
  PUBLIC
  ${PARSEC_SANITIZE_LINK_OPTIONS})

qbittorrent/qBittorrent src/app/CMakeLists.txt :134

target_link_options(qbt_app PUBLIC -rdynamic)

qbittorrent/qBittorrent src/app/CMakeLists.txt :137

target_link_options(qbt_app PUBLIC -rdynamic)

qbittorrent/qBittorrent src/app/CMakeLists.txt :141

target_link_options(qbt_app PUBLIC
    /DEBUG
    /PDBALTPATH:$<TARGET_PDB_FILE_NAME:qbt_app>
)

qbittorrent/qBittorrent src/app/CMakeLists.txt :146

target_link_options(qbt_app PUBLIC LINKER:--export-dynamic)

raysan5/raylib src/CMakeLists.txt :72

target_link_options(raylib PUBLIC "-sUSE_GLFW=3")

raysan5/raylib src/CMakeLists.txt :74

target_link_options(raylib PUBLIC "-sMIN_WEBGL_VERSION=2")

raysan5/raylib src/CMakeLists.txt :75

target_link_options(raylib PUBLIC "-sMAX_WEBGL_VERSION=2")

eliaskosunen/scnlib cmake/buildflags.cmake :314

target_link_options(${target} PUBLIC ${${target}_public_link_flags})

eliaskosunen/scnlib cmake/modules.cmake :63

target_link_options(${target} PUBLIC ${public_link_flags})

spglib/spglib test/CMakeLists.txt :45

target_link_options(Spglib_symspg PUBLIC --coverage)

spglib/spglib test/CMakeLists.txt :48

target_link_options(Spglib_fortran PUBLIC --coverage)

spglib/spglib test/CMakeLists.txt :52

target_link_options(Spglib_python PUBLIC --coverage)

spglib/spglib test/CMakeLists.txt :63

target_link_options(Spglib_symspg PUBLIC
        -fsanitize=${SPGLIB_USE_SANITIZER}
)

DrTimothyAldenDavis/SuiteSparse LAGraph/deps/json_h/test/CMakeLists.txt :72

target_link_options(json_test PUBLIC -fno-omit-frame-pointer -fsanitize=${JSON_USE_SANITIZER})

SuperTux/supertux CMakeLists.txt :241

target_link_options(supertux2 PUBLIC -sEXPORTED_FUNCTIONS=['_main','_set_resolution','_save_config','_onDownloadProgress','_onDownloadFinished','_onDownloadError','_onDownloadAborted','_getExceptionMessage'] PUBLIC -sEXPORTED_RUNTIME_METHODS=['ccall','cwrap'])

SuperTux/supertux mk/cmake/SuperTux/BuildTests.cmake :26

target_link_options(supertux2_lib PUBLIC -lgcov --coverage)

apple/swift cmake/modules/AddPureSwift.cmake :350

target_link_options(${name} PUBLIC "SHELL:-Xlinker -add_ast_path -Xlinker ${module_file}")

apple/swift Runtimes/Core/core/CMakeLists.txt :353

target_link_options(swiftCore PUBLIC
  $<$<LINK_LANGUAGE:Swift>:-nostartfiles>)

apple/swift SwiftCompilerSources/CMakeLists.txt :298

target_link_options(${name} PUBLIC ${public_link_flags})

trilinos/Trilinos packages/kokkos/cmake/kokkos_tribits.cmake :237

target_link_options(${LIBRARY_NAME} PUBLIC $<$<LINK_LANGUAGE:CXX>:${KOKKOS_LINK_OPTIONS}>)

trilinos/Trilinos packages/kokkos/cmake/kokkos_tribits.cmake :241

target_link_options(${LIBRARY_NAME} PUBLIC ${KOKKOS_LINK_OPTIONS})

EttusResearch/uhd host/lib/CMakeLists.txt :191

target_link_options(uhd PUBLIC ${DPDK_LDFLAGS})