diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-11-22 15:22:41 +0100 |
---|---|---|
committer | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-11-22 15:22:41 +0100 |
commit | aa85de386a9de70fb7721ccecb5d1b9c97035c6a (patch) | |
tree | 3ad23177443a881048c6b33f3dfea4f39f7dedc3 /cmake/Modules | |
parent | fc47fb553d3ab61079bb288942b0328e4b3392fb (diff) |
[HICN-412] Added option LINK_FLAGSgto build_executable to specify link flags
Change-Id: I6b382abe374d896c9ea1e0ef5573ba166fafec94
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/BuildMacros.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Modules/BuildMacros.cmake b/cmake/Modules/BuildMacros.cmake index f89902dbc..85789a08a 100644 --- a/cmake/Modules/BuildMacros.cmake +++ b/cmake/Modules/BuildMacros.cmake @@ -21,7 +21,7 @@ macro(build_executable exec) cmake_parse_arguments(ARG "NO_INSTALL" "COMPONENT" - "SOURCES;LINK_LIBRARIES;DEPENDS;INCLUDE_DIRS;DEFINITIONS" + "SOURCES;LINK_LIBRARIES;DEPENDS;INCLUDE_DIRS;DEFINITIONS;LINK_FLAGS" ${ARGN} ) @@ -37,7 +37,7 @@ macro(build_executable exec) ARCHIVE_OUTPUT_DIRECTORY "${BUILD_ROOT}/lib" LIBRARY_OUTPUT_DIRECTORY "${BUILD_ROOT}/lib" RUNTIME_OUTPUT_DIRECTORY "${BUILD_ROOT}/bin" - LINK_FLAGS "-Wl,-unresolved-symbols=ignore-in-shared-libs" + LINK_FLAGS "${ARG_LINK_FLAGS}" ) if(ARG_LINK_LIBRARIES) |