kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit f09c5c153b04962c2aaa208fd48d5a3bcd46988e
parent 5b2a10aac1cbc7c2c693e91acbd6e985e287440c
Author: [email protected] <[email protected]>
Date:   Wed, 24 Jan 2024 07:11:38 +0000

Use LINKER prefix

Diffstat:
Mcmake/link_as_whole.cmake | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/cmake/link_as_whole.cmake b/cmake/link_as_whole.cmake @@ -1,13 +1,11 @@ function (link_as_whole TARGET TYPE LIBRARY) if (APPLE) - target_link_options(${TARGET} ${TYPE} -Wl,-force_load - $<TARGET_FILE:${LIBRARY}>) + target_link_options(${TARGET} ${TYPE} "LINKER:-force_load,$<TARGET_FILE:${LIBRARY}>") elseif (WIN32) target_link_options(${TARGET} ${TYPE} /WHOLEARCHIVE:$<TARGET_FILE:${LIBRARY}>) else () - target_link_options(${TARGET} ${TYPE} -Wl,--push-state,--whole-archive - $<TARGET_FILE:${LIBRARY}> -Wl,--pop-state) + target_link_options(${TARGET} ${TYPE} "LINKER:--push-state,--whole-archive,$<TARGET_FILE:${LIBRARY}>,--pop-state") endif () endfunction ()