changeset 44:6f27794044a2

missing version script
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 29 Jul 2015 17:29:29 +0200
parents a5386ba9b1ca
children 05ac3f595ba5
files CMakeLists.txt
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Tue Jul 28 09:18:59 2015 +0200
+++ b/CMakeLists.txt	Wed Jul 29 17:29:29 2015 +0200
@@ -115,6 +115,10 @@
   SET(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES} -lws2_32")
 endif()
 
+if (CMAKE_COMPILER_IS_GNUCXX)
+  SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${CMAKE_SOURCE_DIR}/Resources/VersionScript.map -Wl,--no-undefined")
+endif()
+
 
 set(CORE_SOURCES
   ${BOOST_SOURCES}