Files
CMake/Modules
Evan Wilde 56e5cea600 Swift: Support module libraries with command-line build systems
Wire up the flags needed to support module libraries built and used with
Swift. We need to pass `-bundle` to the linker when linking module
libraries on Darwin, and we need to pass `-export-dynamic` to the linker
when emitting an executable that exports symbols on Linux. This patch
wires up `CMAKE_SHARED_MODULE_CREATE_Swift_FLAGS` and
`CMAKE_SHARED_MODULE_LOADER_Swift_FLAG` on Darwin, and hooks up
`CMAKE_EXE_EXPORTS_Swift_FLAG` on Linux in order to support passing
things correctly.

We can't expose `CMAKE_EXE_LINKER_FLAGS` to Swift, as it contains flags
that the Swift compiler doesn't recognize, but the other
language-specific variables are safe to expose.
2024-04-15 08:23:39 -07:00
..
2024-04-01 09:43:14 -04:00
2023-11-17 09:58:21 -05:00
2023-11-17 09:58:21 -05:00
2023-11-17 09:58:21 -05:00
2023-11-17 09:58:21 -05:00
2023-11-17 09:58:21 -05:00
2023-11-17 09:58:21 -05:00
2023-11-17 09:58:21 -05:00
2023-05-22 16:51:15 -04:00
2023-11-17 09:58:21 -05:00
2024-04-02 08:07:59 -04:00
2024-01-16 11:57:53 -05:00
2023-11-17 09:58:21 -05:00
2023-11-17 09:58:21 -05:00

See the "Find Modules" section of the cmake-developer(7) manual page.

For more information about how to contribute modules to CMake, see this page:
https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/dev/Module-Maintainers