| ▲ | cosmic_cheese 8 hours ago |
| Experience with SPM might vary depending on how many dependencies you’ve got. A lot of Apple platform apps are quite thin on third party library use, in which case SPM is probably not a large source of trouble. |
|
| ▲ | ethin 8 hours ago | parent [-] |
| My problem with it is that I want to use C libraries. And I would (like) it to handle that as much as possible. But SPM can't use vcpkg packages or call CMake stuff (at least, not trivially), so it's extremely hard to use on non-Apple platforms. Which honestly is it's killer for me. It's still so, so Apple focused. |
| |
| ▲ | willtemperley 7 hours ago | parent | next [-] | | 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). |
|
|
| |
| ▲ | wahnfrieden 2 hours ago | parent | prev [-] | | I think cmake very recently got added to spm |
|