Merge topic 'EP-extra-generator'
74e49aa
BUG 11451 - pass CMAKE_EXTRA_GENERATOR down.
This commit is contained in:
commit
164b11deb7
|
@ -1227,10 +1227,15 @@ function(_ep_add_configure_command name)
|
||||||
get_target_property(cmake_generator ${name} _EP_CMAKE_GENERATOR)
|
get_target_property(cmake_generator ${name} _EP_CMAKE_GENERATOR)
|
||||||
if(cmake_generator)
|
if(cmake_generator)
|
||||||
list(APPEND cmd "-G${cmake_generator}" "${source_dir}")
|
list(APPEND cmd "-G${cmake_generator}" "${source_dir}")
|
||||||
|
else()
|
||||||
|
if(CMAKE_EXTRA_GENERATOR)
|
||||||
|
list(APPEND cmd "-G${CMAKE_EXTRA_GENERATOR} - ${CMAKE_GENERATOR}"
|
||||||
|
"${source_dir}")
|
||||||
else()
|
else()
|
||||||
list(APPEND cmd "-G${CMAKE_GENERATOR}" "${source_dir}")
|
list(APPEND cmd "-G${CMAKE_GENERATOR}" "${source_dir}")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# If anything about the configure command changes, (command itself, cmake
|
# If anything about the configure command changes, (command itself, cmake
|
||||||
# used, cmake args or cmake generator) then re-run the configure step.
|
# used, cmake args or cmake generator) then re-run the configure step.
|
||||||
|
|
Loading…
Reference in New Issue