summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2012-10-01 14:18:20 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2012-10-01 14:18:20 +0000
commit60fc79c717b4bc3c5ab3a45fb10dfe64a907485d (patch)
tree009dd6b215acf983b1cd129d215704ebe43bcffa /cmake
parentf501186b18734d4bd96bec68d9d513c8a68f81d5 (diff)
[trunk] Requires CMake 2.8.2 at least
Diffstat (limited to 'cmake')
-rw-r--r--cmake/OpenJPEGCPack.cmake12
1 files changed, 7 insertions, 5 deletions
diff --git a/cmake/OpenJPEGCPack.cmake b/cmake/OpenJPEGCPack.cmake
index 1a40ff17..a6e9a866 100644
--- a/cmake/OpenJPEGCPack.cmake
+++ b/cmake/OpenJPEGCPack.cmake
@@ -60,11 +60,13 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
endif()
set(CPACK_BUNDLE_NAME "OpenJPEG ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
- configure_file(${CMAKE_ROOT}/Templates/AppleInfo.plist
- ${CMAKE_CURRENT_BINARY_DIR}/opj.plist)
- set(CPACK_BUNDLE_PLIST
- ${CMAKE_CURRENT_BINARY_DIR}/opj.plist)
- #include(BundleUtilities)
+ if(APPLE)
+ configure_file(${CMAKE_ROOT}/Templates/AppleInfo.plist
+ ${CMAKE_CURRENT_BINARY_DIR}/opj.plist)
+ set(CPACK_BUNDLE_PLIST
+ ${CMAKE_CURRENT_BINARY_DIR}/opj.plist)
+ #include(BundleUtilities)
+ endif()
include(CPack)
endiF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")