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 --- apps/CMakeLists.txt | 2 +- apps/higet/CMakeLists.txt | 1 + apps/http-proxy/CMakeLists.txt | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'apps') diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index 9f4e753bb..c74be92ba 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt @@ -46,7 +46,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_APPS "${HICN_APPS}${SUFFIX}") diff --git a/apps/higet/CMakeLists.txt b/apps/higet/CMakeLists.txt index 83a13bcca..76814384d 100644 --- a/apps/higet/CMakeLists.txt +++ b/apps/higet/CMakeLists.txt @@ -37,4 +37,5 @@ build_executable(${HIGET} DEPENDS ${LIBTRANSPORT_LIBRARIES} COMPONENT ${HICN_APPS} DEFINITIONS ${COMPILER_DEFINITIONS} + LINK_FLAGS ${LINK_FLAGS} ) diff --git a/apps/http-proxy/CMakeLists.txt b/apps/http-proxy/CMakeLists.txt index 7e29edcf8..cc47e4b6f 100644 --- a/apps/http-proxy/CMakeLists.txt +++ b/apps/http-proxy/CMakeLists.txt @@ -55,6 +55,7 @@ build_library(${LIBHTTP_PROXY} LINK_LIBRARIES ${LIBRARIES} DEPENDS ${DEPENDENCIES} INCLUDE_DIRS ${LIBTRANSPORT_INCLUDE_DIRS} + LINK_FLAGS ${LINK_FLAGS} ) build_executable(${HTTP_PROXY} @@ -63,4 +64,5 @@ build_executable(${HTTP_PROXY} DEPENDS ${LIBHTTP_PROXY_STATIC} COMPONENT ${HICN_APPS} DEFINITIONS ${COMPILER_DEFINITIONS} + LINK_FLAGS ${LINK_FLAGS} ) -- cgit 1.2.3-korg