summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMarcus D. Hanwell <marcus.hanwell@kitware.com>2010-11-13 00:43:05 (GMT)
committerMarcus D. Hanwell <marcus.hanwell@kitware.com>2010-11-13 00:43:05 (GMT)
commit74e49aa441e4805b40b5e61348501f9143a5defe (patch)
tree805d46bd9e321f229f790e4cd09c53e98d54e8af /Modules
parente6975fe82fc682a47739f3fad695610f045447ae (diff)
downloadCMake-74e49aa441e4805b40b5e61348501f9143a5defe.zip
CMake-74e49aa441e4805b40b5e61348501f9143a5defe.tar.gz
CMake-74e49aa441e4805b40b5e61348501f9143a5defe.tar.bz2
BUG 11451 - pass CMAKE_EXTRA_GENERATOR down.
This patch fixes the behavior of external projects with respect to generators using the CMAKE_EXTRA_GENERATOR variable.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/ExternalProject.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 997164a..1be6cfd 100644
--- a/Modules/ExternalProject.cmake
+++ b/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()