summaryrefslogtreecommitdiffstats
path: root/Modules/CPack.cmake
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2013-11-01 11:31:07 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2013-11-01 11:31:07 (GMT)
commit53d6ebb36079bd30c9033e4374fd8d31a2928b6a (patch)
tree28b265934aa53539128e88ebfb42469f8bfe79f4 /Modules/CPack.cmake
parent193029c4aaad7a13f0b6efed59a1c88af0dc6714 (diff)
downloadCMake-53d6ebb36079bd30c9033e4374fd8d31a2928b6a.zip
CMake-53d6ebb36079bd30c9033e4374fd8d31a2928b6a.tar.gz
CMake-53d6ebb36079bd30c9033e4374fd8d31a2928b6a.tar.bz2
cpack: For DragNDrop generator, add sysroot option when calling Rez.
Diffstat (limited to 'Modules/CPack.cmake')
-rw-r--r--Modules/CPack.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake
index cd98f49..2d641f5 100644
--- a/Modules/CPack.cmake
+++ b/Modules/CPack.cmake
@@ -519,9 +519,9 @@ cpack_set_if_not_set(CPACK_NSIS_INSTALLER_MUI_ICON_CODE "")
# WiX specific variables
cpack_set_if_not_set(CPACK_WIX_SIZEOF_VOID_P "${CMAKE_SIZEOF_VOID_P}")
-# osx sysroot
+# set sysroot so SDK tools can be used
if(CMAKE_OSX_SYSROOT)
- set(CPACK_OSX_SYSROOT "${CMAKE_OSX_SYSROOT}")
+ cpack_set_if_not_set(CPACK_OSX_SYSROOT "${CMAKE_OSX_SYSROOT}")
endif()
if(DEFINED CPACK_COMPONENTS_ALL)