summaryrefslogtreecommitdiff
path: root/Modules/ExternalProject.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2023-02-02 14:14:33 -0500
committerKyle Edwards <kyle.edwards@kitware.com>2023-02-03 11:23:32 -0500
commitcabad8a37f9370df96dfebc124e38d82c141c76a (patch)
tree2e44b71faa2b1b6c6c64383e244f32ab5813aaee /Modules/ExternalProject.cmake
parent62e8884d3f8be6cce8bde32a3f6eb499b4e38758 (diff)
downloadcmake-cabad8a37f9370df96dfebc124e38d82c141c76a.tar.gz
ExternalProject: Always use $<CONFIG> for source files
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r--Modules/ExternalProject.cmake8
1 files changed, 1 insertions, 7 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 3752cebad7..18068cb391 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -2091,13 +2091,7 @@ function(_ep_get_configuration_subdir_genex suffix_var)
set(suffix "")
get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(_isMultiConfig)
- if(CMAKE_GENERATOR STREQUAL "Xcode")
- # The Xcode generator does not support per-config sources,
- # so use the underlying build system's placeholder instead.
- set(suffix "/${CMAKE_CFG_INTDIR}")
- else()
- set(suffix "/$<CONFIG>")
- endif()
+ set(suffix "/$<CONFIG>")
endif()
set(${suffix_var} "${suffix}" PARENT_SCOPE)
endfunction()