summaryrefslogtreecommitdiffstats
path: root/Tests/CFBundleTest
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-01-11 21:48:37 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-01-11 21:48:37 (GMT)
commitcabc407912bb3bc0bb954e317a999cb2ee64de57 (patch)
treeab91390fda948ff40c0670ca9ddc443d0db3c4a3 /Tests/CFBundleTest
parent5457b8254cb43e002fe90b7c81ae65134ec12b24 (diff)
downloadCMake-cabc407912bb3bc0bb954e317a999cb2ee64de57.zip
CMake-cabc407912bb3bc0bb954e317a999cb2ee64de57.tar.gz
CMake-cabc407912bb3bc0bb954e317a999cb2ee64de57.tar.bz2
CFBundle Test: Add PATHS for finding Rez (#11295)
Some older dashboard machines do not have Rez in /usr/bin like us modern folk. But most of them will have it in /Developer/Tools... So make sure we look there.
Diffstat (limited to 'Tests/CFBundleTest')
-rw-r--r--Tests/CFBundleTest/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/CFBundleTest/CMakeLists.txt b/Tests/CFBundleTest/CMakeLists.txt
index 347578b..8fd9efd 100644
--- a/Tests/CFBundleTest/CMakeLists.txt
+++ b/Tests/CFBundleTest/CMakeLists.txt
@@ -25,7 +25,10 @@ configure_file(Info.plist.in ${CMAKE_CURRENT_BINARY_DIR}/Info.plist)
configure_file(InfoPlist.strings.in ${CMAKE_CURRENT_BINARY_DIR}/InfoPlist.strings)
# Compile the resource file
-find_program(RC_COMPILER Rez NO_DEFAULT_PATHS)
+find_program(RC_COMPILER Rez NO_DEFAULT_PATHS PATHS /Developer/Tools)
+if(NOT RC_COMPILER)
+ message(FATAL_ERROR "could not find Rez to build resources from .r file...")
+endif()
execute_process(COMMAND
${RC_COMPILER} ${RCFILES} -useDF -o ${CMAKE_CURRENT_BINARY_DIR}/Localized.rsrc