mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
As an additional fix, this moves the include of SwiftXcodeSupport to the one place where its functionality is used, AddSwift.cmake. Keeping the include in ./CMakeLists.txt makes it seem like the functionality is needed there (when it is not). In a subsequent commit, I am going to refactor the xcode support I have been adding to SwiftSharedCMakeConfig into this file and have SwiftSharedCMakeConfig import it.
13 lines
496 B
CMake
13 lines
496 B
CMake
# This file contains cmake configuration specifically related to support for the
|
|
# Xcode generator in CMake.
|
|
|
|
function(apply_xcode_substitutions config path result_var_name)
|
|
# Hack to deal with the fact that paths contain the build-time
|
|
# variables. Note that this fix is Xcode-specific.
|
|
string(REPLACE "$(CONFIGURATION)" "${config}" result "${path}")
|
|
string(REPLACE "$(EFFECTIVE_PLATFORM_NAME)" "" result "${result}")
|
|
|
|
set("${result_var_name}" "${result}" PARENT_SCOPE)
|
|
endfunction()
|
|
|