From aa85de386a9de70fb7721ccecb5d1b9c97035c6a Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Fri, 22 Nov 2019 15:22:41 +0100 Subject: [HICN-412] Added option LINK_FLAGSgto build_executable to specify link flags Change-Id: I6b382abe374d896c9ea1e0ef5573ba166fafec94 Signed-off-by: Alberto Compagno --- utils/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index 3ed6f9bf3..0e5430356 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -47,7 +47,7 @@ endif() set(SUFFIX "") if (${LIBTRANSPORT_LIBRARIES} MATCHES ".*-memif.*") set(SUFFIX "-memif") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,-unresolved-symbols=ignore-in-shared-libs") + set(LINK_FLAGS "-Wl,-unresolved-symbols=ignore-in-shared-libs") endif() set(HICN_UTILS "${HICN_UTILS}${SUFFIX}") @@ -66,6 +66,7 @@ build_executable(hiperf DEPENDS ${DEPENDENCIES} COMPONENT ${HICN_UTILS} DEFINITIONS ${COMPILER_DEFINITIONS} + LINK_FLAGS ${LINK_FLAGS} ) build_executable(hicn-ping-server @@ -74,6 +75,7 @@ build_executable(hicn-ping-server DEPENDS ${DEPENDENCIES} COMPONENT ${HICN_UTILS} DEFINITIONS ${COMPILER_DEFINITIONS} + LINK_FLAGS ${LINK_FLAGS} ) build_executable(hicn-ping-client @@ -82,4 +84,5 @@ build_executable(hicn-ping-client DEPENDS ${DEPENDENCIES} COMPONENT ${HICN_UTILS} DEFINITIONS ${COMPILER_DEFINITIONS} + LINK_FLAGS ${LINK_FLAGS} ) -- cgit 1.2.3-korg