diff options
author | Flynn Marquardt <flynn@geomap.de> | 2013-12-02 14:32:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-12-02 14:32:40 (GMT) |
commit | 3189ed34b819de1a67c22ecd446d815ac61649ce (patch) | |
tree | bcea3a43c01c6de86f2a55f6f504d6b7c466ee0a /Modules/Platform | |
parent | b80ef72b4d8e76bf5912d6d59a749a2d94bb49b2 (diff) | |
download | CMake-3189ed34b819de1a67c22ecd446d815ac61649ce.zip CMake-3189ed34b819de1a67c22ecd446d815ac61649ce.tar.gz CMake-3189ed34b819de1a67c22ecd446d815ac61649ce.tar.bz2 |
OS X: Fix app bundle search path during cross compiling (#14603)
In "Modules/Platform/Darwin.cmake" the variable _apps_paths stays empty
if cross compiling. Do not de-duplicate an empty list.
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Darwin.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake index f3ec441..fc3f87e 100644 --- a/Modules/Platform/Darwin.cmake +++ b/Modules/Platform/Darwin.cmake @@ -341,7 +341,9 @@ foreach(_path list(APPEND _apps_paths "${_apps}") endif() endforeach() -list(REMOVE_DUPLICATES _apps_paths) +if(_apps_paths) + list(REMOVE_DUPLICATES _apps_paths) +endif() set(CMAKE_SYSTEM_APPBUNDLE_PATH ${_apps_paths}) unset(_apps_paths) |