Commit Graph

10 Commits

Author SHA1 Message Date
Saleem Abdulrasool
d8b3b626fe build: use modern target property handling
Use specific operations for setting the compile flags, link flags,
linked libraries, and library search paths.  This allows us to use CMake
more effectively, simplifies the logic, and will ensure that flags are
not duplicated.
2020-01-25 16:08:51 -08:00
Hugh Bellamy
cb5800aa69 [CMake] remove some unused functions 2017-02-17 14:21:52 +07:00
Hugh Bellamy
bc432e639b Cleanup CMake _require_empty list 2017-02-15 15:20:12 +07:00
Brian Gesiak
3123b47602 [cmake] Enable IN_LIST compare policy
Enable CMake policy CMP0057, which allows `if()` statements to use the `IN_LIST`
operator. In addition, simplify several `if()` statements that used the
`list(FIND ...)` operation instead.
2016-09-28 22:35:05 -04:00
Michael Gottesman
3c9fc6c2b8 Fix precondition_list_is_disjoint to actually test something. 2016-08-27 20:04:02 -07:00
Michael Gottesman
69bf6ce306 [cmake][list] Add utilities to SwiftList.cmake for using cmake lists as sets.
This will allow for one to work with sets in cmake in a much cleaner
fashion.
2016-07-25 12:04:53 -07:00
Saleem Abdulrasool
b4960195c1 build: support aliases for TARGET_SDKS
Introduce two new aliasees `ALL_POSIX_PLATFORMS` and `ALL_APPLE_PLATFORMS`.  The
latter expands to iOS, tvOS, watchOS, macOS and if relevant, the simulators.
The former expands to the same list as `ALL_APPLE_PLATFORMS` as well as Linux
and FreeBSD.
2016-07-08 09:38:02 -07:00
Michael Gottesman
1d28c0ac4d [cmake] Refactor two list processing utility functions from AddSwift.cmake => SwiftList.cmake. 2016-06-28 14:19:18 -07:00
David Farler
e1eca69d1a Ensure swiftReflection is always built for the host
swift-reflection-dump, a host-side tool, requires this library that
normally builds for the configured platform. So, if the host platform
isn't configured to build for some reason, swift-reflection-dump will
fail to link.
2016-04-04 15:23:07 -07:00
Dmitri Hrybenko
6670bb76ec Rewrite the CMake build system
Swift SVN r24124
2014-12-23 22:15:30 +00:00