diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/CMakeLists.txt | 2 | ||||
-rw-r--r-- | apps/higet/CMakeLists.txt | 1 | ||||
-rw-r--r-- | apps/http-proxy/CMakeLists.txt | 2 |
3 files changed, 4 insertions, 1 deletions
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} ) |