| ▲ | willtemperley 7 hours ago |
| You can build Swift entirely with CMake; https://github.com/swiftlang/swift-cmake-examples |
|
| ▲ | ethin 5 hours ago | parent [-] |
| Sure, but I've never found examples of (say) including other swift packages. Or using CMake-built swift packages in SPM. |
| |
| ▲ | jabwd 4 hours ago | parent [-] | | What is a CMake-built swift package to begin with? You're mixing build systems and expecting them to co-exist or what is the exact problem? I've done a lot of weird swift things so might be able to point you in the right direction. | | |
| ▲ | ethin 3 hours ago | parent [-] | | E.g.: referencing a vcpkg-built package (without pkgconfig because not all packages have those files). Or telling SPM "Hey, I have this package which uses the cmake build system, and I want you to link to it and auto-generate module maps for it, and get the include directories from cmake". Things like that. So for me anyway it makes using swift painful. The same thing goes in reverse: using SPM packages from cmake (although this is more a cmake issue). |
|
|