summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-07 14:09:15 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-11-07 14:09:15 (GMT)
commit9fc158b6d5ae9902f544fd280c3b087c433fecc6 (patch)
treeb34324262d736270391aaf540785e3b6c7c99c51
parent8b27dbf4e4fe92fe253a0200ad891b1bd41f57ba (diff)
parenta5aadcd46d3cd8cbf5bc4855a721a48d9269ab6e (diff)
downloadCMake-9fc158b6d5ae9902f544fd280c3b087c433fecc6.zip
CMake-9fc158b6d5ae9902f544fd280c3b087c433fecc6.tar.gz
CMake-9fc158b6d5ae9902f544fd280c3b087c433fecc6.tar.bz2
Merge topic 'cfbundle-test-no-cl-tools'
a5aadcd CFBundle test: Add isysroot argument when calling Rez.
-rw-r--r--Tests/CFBundleTest/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/Tests/CFBundleTest/CMakeLists.txt b/Tests/CFBundleTest/CMakeLists.txt
index bf9771c..5cda527 100644
--- a/Tests/CFBundleTest/CMakeLists.txt
+++ b/Tests/CFBundleTest/CMakeLists.txt
@@ -30,8 +30,14 @@ if(NOT RC_COMPILER)
message(FATAL_ERROR "could not find Rez to build resources from .r file...")
endif()
+set(sysroot)
+if(CMAKE_OSX_SYSROOT)
+ set(sysroot -isysroot ${CMAKE_OSX_SYSROOT})
+endif()
+
execute_process(COMMAND
- ${RC_COMPILER} ${RCFILES} -useDF -o ${CMAKE_CURRENT_BINARY_DIR}/Localized.rsrc
+ ${RC_COMPILER} ${sysroot} ${RCFILES} -useDF
+ -o ${CMAKE_CURRENT_BINARY_DIR}/Localized.rsrc
)
set_source_files_properties(