Files
swift-mirror/cmake/modules/SwiftApplyXcodeSubstitutions.cmake
Dmitri Hrybenko 6670bb76ec Rewrite the CMake build system
Swift SVN r24124
2014-12-23 22:15:30 +00:00

10 lines
386 B
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()