aboutsummaryrefslogtreecommitdiffstats
path: root/build_settings.cmake
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-01-28 14:20:56 +0100
committerTor Egge <Tor.Egge@broadpark.no>2019-01-28 14:22:33 +0100
commitd4ce49b2db7851dea421be8e00d19905b751ef1f (patch)
treec3416379874954905b50515532c0a735f3c958a6 /build_settings.cmake
parent128356c5832426505ea375ac50cfd66d8409c954 (diff)
Enable cppunit tests in shared libraries.
Diffstat (limited to 'build_settings.cmake')
-rw-r--r--build_settings.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/build_settings.cmake b/build_settings.cmake
index 1bb5ed8baa0..e919641ba5b 100644
--- a/build_settings.cmake
+++ b/build_settings.cmake
@@ -101,3 +101,6 @@ endif()
# Don't allow unresolved symbols in executables or shared libraries
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-undefined")
+
+# Enable cppunit tests in shared libraries
+set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-as-needed")