summaryrefslogtreecommitdiffstats
path: root/CMakeInstallation.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2014-04-22 19:02:40 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2014-04-22 19:02:40 (GMT)
commit2fc0c50a9dee7aaf810c210068e702d54ec7a3b2 (patch)
tree9ed7b8b24274e2cf919c2478861c0faad43ee3a8 /CMakeInstallation.cmake
parent3bd99b85badc4bdfc7452d90dfab941a994da29b (diff)
downloadhdf5-2fc0c50a9dee7aaf810c210068e702d54ec7a3b2.zip
hdf5-2fc0c50a9dee7aaf810c210068e702d54ec7a3b2.tar.gz
hdf5-2fc0c50a9dee7aaf810c210068e702d54ec7a3b2.tar.bz2
[svn-r25076] Correct the install folder logic.
Tested: local linux
Diffstat (limited to 'CMakeInstallation.cmake')
-rw-r--r--CMakeInstallation.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/CMakeInstallation.cmake b/CMakeInstallation.cmake
index 0604802..83ba252 100644
--- a/CMakeInstallation.cmake
+++ b/CMakeInstallation.cmake
@@ -292,10 +292,8 @@ if (NOT HDF5_EXTERNALLY_CONFIGURED AND NOT HDF5_NO_PACKAGES)
elseif (APPLE)
LIST (APPEND CPACK_GENERATOR "DragNDrop")
set (CPACK_COMPONENTS_ALL_IN_ONE_PACKAGE ON)
- set (CPACK_PACKAGE_DEFAULT_LOCATION "/opt/${CPACK_PACKAGE_NAME}")
- set (CPACK_PACKAGING_INSTALL_PREFIX "/")
+ set (CPACK_PACKAGING_INSTALL_PREFIX "/${CPACK_PACKAGE_INSTALL_DIRECTORY}")
set (CPACK_PACKAGE_ICON "${HDF5_RESOURCES_DIR}/hdf.icns")
- set (CPACK_SET_DESTDIR TRUE) # Required when packaging, and set CMAKE_INSTALL_PREFIX to "/".
if (HDF5_PACK_MACOSX_BUNDLE)
LIST (APPEND CPACK_GENERATOR "Bundle")