Skip to content

Commit

Permalink
unit-tests: add target linker options for wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
andrej committed Nov 2, 2022
1 parent 18f02fa commit 2862c38
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/interfaces/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -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}

Expand Down

0 comments on commit 2862c38

Please sign in to comment.