Closed CharlieTLe closed 9 months ago
So I thought maybe something like this:
FetchContent_Declare(
swift-numerics
GIT_REPOSITORY "https://github.com/apple/swift-numerics.git"
GIT_TAG "1.0.2")
FetchContent_MakeAvailable(swift-numerics)
swift-numerics
has a CMakeLists.txt, but it fails to build:
-- Could NOT find swift-numerics (missing: swift-numerics_DIR)
CMake Error at build/_deps/swift-numerics-src/CMakeLists.txt:22 (include):
include could not find requested file:
SwiftSupport
CMake Error at build/_deps/swift-numerics-src/Sources/ComplexModule/CMakeLists.txt:21 (_install_target):
Unknown CMake command "_install_target".
That looks like a failure in the swift-numerics
package -- it has a cmake/modules
directory with SwiftSupport
in it but it isn't finding it.
@andresy looking for advice :-)
This should be fixed with #30 and is part of CI with #31.
OK to close?
Works now, thank you.
After following the steps for building with
CMake
in https://github.com/ml-explore/mlx-swift#cmake, theninja
command fails to run with the output:It seems like the
swift-numerics
package is not being checked out which provides theComplex
type (according to @davidkoski).