From c194235963f7b1e95dfa52c5de772a5557383156 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Mon, 22 Feb 2016 15:01:04 +0100 Subject: [PATCH] solaris also trips on -wl,--version --- 3rdParty/zlib/zlib-1.2.8/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdParty/zlib/zlib-1.2.8/CMakeLists.txt b/3rdParty/zlib/zlib-1.2.8/CMakeLists.txt index 8f85c1a122..e8cb305fd6 100644 --- a/3rdParty/zlib/zlib-1.2.8/CMakeLists.txt +++ b/3rdParty/zlib/zlib-1.2.8/CMakeLists.txt @@ -206,7 +206,7 @@ endif() if(UNIX) # On unix-like platforms the library is almost always called libz set_target_properties(zlib zlibstatic PROPERTIES OUTPUT_NAME z) - if(NOT APPLE) + if(NOT APPLE AND NOT SOLARIS) set_target_properties(zlib PROPERTIES LINK_FLAGS "-Wl,--version-script,\"${CMAKE_CURRENT_SOURCE_DIR}/zlib.map\"") endif() elseif(BUILD_SHARED_LIBS AND WIN32)