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.
This commit is contained in:
Flynn Marquardt 2013-12-02 09:32:40 -05:00 committed by Brad King
parent b80ef72b4d
commit 3189ed34b8
1 changed files with 3 additions and 1 deletions

View File

@ -341,7 +341,9 @@ foreach(_path
list(APPEND _apps_paths "${_apps}")
endif()
endforeach()
if(_apps_paths)
list(REMOVE_DUPLICATES _apps_paths)
endif()
set(CMAKE_SYSTEM_APPBUNDLE_PATH
${_apps_paths})
unset(_apps_paths)