diff options
author | Brad King <brad.king@kitware.com> | 2021-10-06 13:56:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-06 14:36:39 (GMT) |
commit | 5c4424e5b7d014eae7fc6951d4af32102f198306 (patch) | |
tree | d195e7d7be8824596145bf8dedbb272c63a433d3 /Modules/CMakeDetermineCompilerId.cmake | |
parent | 49392b591dd32732d101e7983f528f6560e7f7b5 (diff) | |
download | CMake-5c4424e5b7d014eae7fc6951d4af32102f198306.zip CMake-5c4424e5b7d014eae7fc6951d4af32102f198306.tar.gz CMake-5c4424e5b7d014eae7fc6951d4af32102f198306.tar.bz2 |
CMakeDetermineCompilerId: Tolerate variables named for languages
Diffstat (limited to 'Modules/CMakeDetermineCompilerId.cmake')
-rw-r--r-- | Modules/CMakeDetermineCompilerId.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake index b38de8a..2582497 100644 --- a/Modules/CMakeDetermineCompilerId.cmake +++ b/Modules/CMakeDetermineCompilerId.cmake @@ -539,7 +539,7 @@ Id flags: ${testflags} ${CMAKE_${lang}_COMPILER_ID_FLAGS_ALWAYS} else() set(id_toolset "") endif() - if("${lang}" STREQUAL "Swift") + if("x${lang}" STREQUAL "xSwift") if(CMAKE_Swift_LANGUAGE_VERSION) set(id_lang_version "SWIFT_VERSION = ${CMAKE_Swift_LANGUAGE_VERSION};") elseif(XCODE_VERSION VERSION_GREATER_EQUAL 10.2) |