Browse Source

Merge topic 'EP-extra-generator'

74e49aa BUG 11451 - pass CMAKE_EXTRA_GENERATOR down.
David Cole 15 years ago
parent
commit
164b11deb7
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Modules/ExternalProject.cmake

+ 6 - 1
Modules/ExternalProject.cmake

@@ -1228,7 +1228,12 @@ function(_ep_add_configure_command name)
     if(cmake_generator)
       list(APPEND cmd "-G${cmake_generator}" "${source_dir}")
     else()
-      list(APPEND cmd "-G${CMAKE_GENERATOR}" "${source_dir}")
+      if(CMAKE_EXTRA_GENERATOR)
+        list(APPEND cmd "-G${CMAKE_EXTRA_GENERATOR} - ${CMAKE_GENERATOR}"
+          "${source_dir}")
+      else()
+        list(APPEND cmd "-G${CMAKE_GENERATOR}" "${source_dir}")
+      endif()
     endif()
   endif()