From: Daniel Snider Date: Tue, 3 Apr 2012 14:26:07 +0000 (-0500) Subject: Fix the path to zlib.map in CMakeLists.txt. X-Git-Tag: upstream/1.2.8~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4373bac37eab11b6140e8e1c99c4010335e8a473;p=platform%2Fupstream%2Fzlib.git Fix the path to zlib.map in CMakeLists.txt. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 09ae69d..7ee3bc4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -166,7 +166,7 @@ endif() if(UNIX) # On unix-like platforms the library is almost always called libz set_target_properties(zlib zlibstatic PROPERTIES OUTPUT_NAME z) - set_target_properties(zlib PROPERTIES LINK_FLAGS "-Wl,--version-script,zlib.map") + set_target_properties(zlib PROPERTIES LINK_FLAGS "-Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/zlib.map") elseif(BUILD_SHARED_LIBS AND WIN32) # Creates zlib1.dll when building shared library version set_target_properties(zlib PROPERTIES SUFFIX "1.dll")