Skip to content

Commit b6d6bd0

Browse files
authored
Merge pull request #72940 from etcwilde/ewilde/improve-missing-swift-warning
CMake: Improve missing swift warning
2 parents 6e4ccca + e2d1403 commit b6d6bd0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ if(CMAKE_Swift_COMPILER)
108108
enable_language(Swift)
109109
set(DEFAULT_SWIFT_MIN_RUNTIME_VERSION "${CMAKE_Swift_COMPILER_VERSION}")
110110
else()
111-
message(STATUS "WARNING! Did not find a host compiler swift?! Can not build
112-
any compiler host sources written in Swift")
111+
message(WARNING "Swift compiler not found on path.
112+
Cannot build compiler sources written in Swift.
113+
If this is unexpected, please pass the path to the swiftc binary by defining the `CMAKE_Swift_COMPILER` variable.")
113114
set(DEFAULT_SWIFT_MIN_RUNTIME_VERSION)
114115
endif()
115116

0 commit comments

Comments
 (0)