cmake: Set LINK_FLAGS for echo_srv
authorAndreas Schneider <asn@samba.org>
Wed, 7 Nov 2018 08:14:40 +0000 (09:14 +0100)
committerAndreas Schneider <asn@samba.org>
Wed, 7 Nov 2018 14:29:49 +0000 (15:29 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
tests/CMakeLists.txt

index 2f76c6b563479ac0bcd1ce77d513f10417f04d87..829c2431066359188698b30c2537499b22e38ead 100644 (file)
@@ -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}