summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineSwiftCompiler.cmake
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2020-03-07 18:15:29 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-03-09 13:11:22 (GMT)
commit65b3848de0ae6251858dd12c97bff8110cb845f1 (patch)
tree43a7c665fd2fb3345673f8004fd80fd67ce7cade /Modules/CMakeDetermineSwiftCompiler.cmake
parent6857aaaa062f3526fc54438472fe676bcda5842e (diff)
downloadCMake-65b3848de0ae6251858dd12c97bff8110cb845f1.zip
CMake-65b3848de0ae6251858dd12c97bff8110cb845f1.tar.gz
CMake-65b3848de0ae6251858dd12c97bff8110cb845f1.tar.bz2
Swift: support Ninja Multi-Config
Enable support for multi-configuration builds using Ninja when building Swift.
Diffstat (limited to 'Modules/CMakeDetermineSwiftCompiler.cmake')
-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()