View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0014603 | CMake | CMake | public | 2013-11-28 03:36 | 2014-06-02 08:37 |
|
Reporter | Flynn Marquardt | |
Assigned To | Brad King | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | CMake 2.8.12 | |
Target Version | CMake 3.0 | Fixed in Version | CMake 3.0 | |
|
Summary | 0014603: Cross compiling for darwin fails |
Description | Due to the hard coded paths in Darwin.cmake, that fit perfect compiling native on OSX, the variable _apps_paths stays empty if cross compiling and the command list(REMOVE_DUPLICATES _apps_paths) fails on an empty list.
The supplied patch solves this. |
Tags | No tags attached. |
|
Attached Files | cmake-darwin-cross.patch [^] (413 bytes) 2013-11-28 03:36 [Show Content] [Hide Content]--- a/Modules/Platform/Darwin.cmake 2013-05-15 19:38:12.000000000 +0200
+++ b/Modules/Platform/Darwin.cmake 2013-05-30 21:17:12.610816018 +0200
@@ -341,7 +341,9 @@
list(APPEND _apps_paths "${_apps}")
endif()
endforeach()
-list(REMOVE_DUPLICATES _apps_paths)
+if(_apps_path)
+ list(REMOVE_DUPLICATES _apps_paths)
+endif(_apps_path)
set(CMAKE_SYSTEM_APPBUNDLE_PATH
${_apps_paths})
unset(_apps_paths)
|
|