瀏覽代碼

Merge topic 'cfbundle-test-no-cl-tools'

a5aadcd CFBundle test: Add isysroot argument when calling Rez.
Brad King 12 年之前
父節點
當前提交
9fc158b6d5
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      Tests/CFBundleTest/CMakeLists.txt

+ 7 - 1
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(