From 2862c388d8277e4a460f6a316becafc8b70afb22 Mon Sep 17 00:00:00 2001 From: andrej Date: Wed, 2 Nov 2022 12:07:22 +0100 Subject: [PATCH] unit-tests: add target linker options for wrap --- src/interfaces/tests/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/interfaces/tests/CMakeLists.txt b/src/interfaces/tests/CMakeLists.txt index c0d717b5..c7e9f3e0 100644 --- a/src/interfaces/tests/CMakeLists.txt +++ b/src/interfaces/tests/CMakeLists.txt @@ -1,5 +1,9 @@ set(INTERFACES_UTEST_NAME "interfaces_utest") set(UTILS_MEMORY_LIBRARY_NAME "utils_memory") +set( + INTERFACES_UTEST_LINKER_OPTIONS + #"-Wl,--wrap=foo" +) add_executable( ${INTERFACES_UTEST_NAME} @@ -15,6 +19,10 @@ add_library( STATIC ${CMAKE_SOURCE_DIR}/src/utils/memory.c ) +target_link_options( + ${INTERFACES_UTEST_NAME} + PRIVATE ${INTERFACES_UTEST_LINKER_OPTIONS} +) target_link_libraries( ${INTERFACES_UTEST_NAME}