summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-11-07 09:14:40 +0100
committerAndreas Schneider <asn@samba.org>2018-11-07 15:29:49 +0100
commitdfeb05d87bac0d81f2676fbc22430bd0018eaa49 (patch)
treecd07f2896d6375ed0000192260a18bddc510f6f4
parentcdf557dbca4df47301922c6304269f874236c759 (diff)
downloadsocket_wrapper-dfeb05d87bac0d81f2676fbc22430bd0018eaa49.tar.gz
socket_wrapper-dfeb05d87bac0d81f2676fbc22430bd0018eaa49.tar.xz
socket_wrapper-dfeb05d87bac0d81f2676fbc22430bd0018eaa49.zip
cmake: Set LINK_FLAGS for echo_srv
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--tests/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 2f76c6b..829c243 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -16,6 +16,11 @@ target_compile_options(echo_srv
${DEFAULT_C_COMPILE_FLAGS}
-D_GNU_SOURCE)
target_link_libraries(echo_srv ${SWRAP_REQUIRED_LIBRARIES})
+if (DEFINED DEFAULT_LINK_FLAGS)
+ set_target_properties(echo_srv
+ PROPERTIES
+ LINK_FLAGS ${DEFAULT_LINK_FLAGS})
+endif()
add_library(${TORTURE_LIBRARY} STATIC torture.c)
target_compile_options(${TORTURE_LIBRARY}