perhaps unneeded, but...
authorkoda
Fri, 24 May 2013 01:45:03 +0200
changeset 9050 e9d54cd577e7
parent 9049 69016523a7a2
child 9051 9f0a891c15ea
perhaps unneeded, but...
tools/CMakeLists.txt
tools/CreateMacBundle.cmake.in
--- a/tools/CMakeLists.txt	Fri May 24 00:55:33 2013 +0200
+++ b/tools/CMakeLists.txt	Fri May 24 01:45:03 2013 +0200
@@ -33,6 +33,7 @@
     if(NOT NOPNG)
         #get the neme of the library (harmelss if it is static)
         string(REGEX REPLACE ".*/(.*)$" "\\1" PNG_LIBNAME "${PNG_LIBRARY}")
+        string(REGEX REPLACE ".*/(.*)$" "\\1" ZLIB_LIBNAME "${ZLIB_LIBRARY}")
     endif()
 
     set(frameworks_dir ${CMAKE_INSTALL_PREFIX}/${target_library_install_dir})
--- a/tools/CreateMacBundle.cmake.in	Fri May 24 00:55:33 2013 +0200
+++ b/tools/CreateMacBundle.cmake.in	Fri May 24 01:45:03 2013 +0200
@@ -16,6 +16,7 @@
     #same here, for libpng and hwengine, let's assume the version pulled by macdeployqt is the same
     #(yes libpng is pulled by macdeployqt even when NOVIDEOREC is active)
     execute_process(COMMAND install_name_tool -change ${PNG_LIBRARY} @executable_path/../Frameworks/${PNG_LIBNAME} ${engine_full_path})
+    execute_process(COMMAND install_name_tool -change ${ZLIB_LIBRARY} @executable_path/../Frameworks/${ZLIB_LIBNAME} ${engine_full_path})
 endif()
 
 if(doBundle EQUAL 1)