Browse Source

Merge topic 'osx-cross-compile-fixup'

3189ed3 OS X: Fix app bundle search path during cross compiling (#14603)
Brad King 12 years ago
parent
commit
da47c9733b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Modules/Platform/Darwin.cmake

+ 3 - 1
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)