summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-03-09 13:12:54 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-03-09 13:12:54 (GMT)
commit87819db28d28a95b2894054b38bda17c546bc572 (patch)
tree250677af2e3c6f3df3ab2cf78e58e5d4925031f4 /Modules
parent51238ec1d927d060d62f65b866eb852c61723173 (diff)
parent65b3848de0ae6251858dd12c97bff8110cb845f1 (diff)
downloadCMake-87819db28d28a95b2894054b38bda17c546bc572.zip
CMake-87819db28d28a95b2894054b38bda17c546bc572.tar.gz
CMake-87819db28d28a95b2894054b38bda17c546bc572.tar.bz2
Merge branch 'backport-swift-ninja-multiconfig' into swift-ninja-multiconfig
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeDetermineSwiftCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineSwiftCompiler.cmake b/Modules/CMakeDetermineSwiftCompiler.cmake
index 9aafe48..688133f 100644
--- a/Modules/CMakeDetermineSwiftCompiler.cmake
+++ b/Modules/CMakeDetermineSwiftCompiler.cmake
@@ -16,7 +16,7 @@ if("${CMAKE_GENERATOR}" STREQUAL "Xcode")
endif()
set(CMAKE_Swift_COMPILER_XCODE_TYPE sourcecode.swift)
_cmake_find_compiler_path(Swift)
-elseif("${CMAKE_GENERATOR}" STREQUAL "Ninja")
+elseif("${CMAKE_GENERATOR}" MATCHES "^Ninja")
if(CMAKE_Swift_COMPILER)
_cmake_find_compiler_path(Swift)
else()