Fix full path to icns file
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 11 Jan 2012 12:46:23 +0000 (12:46 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Wed, 11 Jan 2012 12:46:23 +0000 (12:46 +0000)
CMake/OpenJPEGCPack.cmake

index b836bcb83e4973e40e917486f236146410e68889..e174e5b791bf12425b232115d209a9ad2ad9422c 100644 (file)
@@ -22,7 +22,7 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
   set(CPACK_PACKAGE_INSTALL_DIRECTORY "OpenJPEG ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
   set(CPACK_SOURCE_PACKAGE_FILE_NAME  "openjpeg-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
 
-  set(MACOSX_BUNDLE_ICON_FILE opj_logo.icns)
+  set(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/CMake/opj_logo.icns")
   set(CPACK_BUNDLE_NAME "BundleGeneratorTest")
   configure_file(${CMAKE_ROOT}/Templates/AppleInfo.plist
     ${CMAKE_CURRENT_BINARY_DIR}/opj.plist)