Merge topic 'ExternalProject-xcode-effective-platform'
0a3caf0878
ExternalProject: Restore support for Xcode with an effective platform
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9517
This commit is contained in:
commit
26bbee30cc
@ -2297,7 +2297,16 @@ function(_ep_get_configuration_subdir_genex suffix_var)
|
||||
set(suffix "")
|
||||
get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
||||
if(_isMultiConfig)
|
||||
set(suffix "/$<CONFIG>")
|
||||
if(CMAKE_GENERATOR STREQUAL "Xcode")
|
||||
# The Xcode generator does not support per-config sources,
|
||||
# so use the underlying build system's placeholder instead.
|
||||
# FIXME(#23652): We have no test for the use case requiring
|
||||
# CMAKE_CFG_INTDIR for XCODE_EMIT_EFFECTIVE_PLATFORM_NAME,
|
||||
# but $<CONFIG> does not work.
|
||||
set(suffix "/${CMAKE_CFG_INTDIR}")
|
||||
else()
|
||||
set(suffix "/$<CONFIG>")
|
||||
endif()
|
||||
endif()
|
||||
set(${suffix_var} "${suffix}" PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
Loading…
Reference in New Issue
Block a user