Hi, I’m working on macOS and have updated my OS version recently. when I try to build swift based library generated from cmake, I fail on the following line
since the compiler couldn’t be found (although I’ve properly installed Xcode+developer tools)
Here’s the relevant output
-- The Swift compiler identification is unknown -- Configuring incomplete, errors occurred! See also "/Users/me/myProj/CMakeFiles/CMakeOutput.log". See also "/Users/me/myProj/CMakeFiles/CMakeError.log". CMake Error at CMakeLists.txt:17 (enable_language): No CMAKE_Swift_COMPILER could be found
Here’s my swift compiler location
❯ xcrun swift -version Apple Swift version 5.7.2 (swiftlang-220.127.116.11.5 clang-1400.0.29.51) Target: arm64-apple-darwin22.2.0 ❯ xcrun --find swift /Library/Developer/CommandLineTools/usr/bin/swift
Perhaps there’s a way to explicitly set the compiler pointer ?