From 8d4fc83cd991a67da30f740a707753068591cf1d Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 23 Mar 2024 13:22:40 +0100 Subject: [PATCH] optimize linker parameters --- CMakeLists.txt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8271599..815c532 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,14 +10,10 @@ ELSE() -Wall \ -g \ -fsanitize=address \ --Xlinker \ ---wrap=kds_s2000w_client_get_option \ --Xlinker \ ---wrap=kds_s2000w_client_stop_scan \ --Xlinker \ ---wrap=kds_s2000w_client_open_session \ --Xlinker \ ---wrap=load_config" CACHE STRING "test coverage compiler flags" FORCE) +-Wl,--wrap,kds_s2000w_client_get_option,\ +--wrap,kds_s2000w_client_stop_scan,\ +--wrap,kds_s2000w_client_open_session,\ +--wrap,load_config" CACHE STRING "test coverage compiler flags" FORCE) ENDIF() MESSAGE(STATUS "CMAKE_C_FLAGS " ${CMAKE_C_FLAGS}) -- 2.39.5