mirror of
https://github.com/apple/swift-log
synced 2026-11-28 04:14:20 +00:00
add CMake configurations for Sources targets
This commit is contained in:
1 parent
8cf29c68bb
commit
890fd0ba3a
3 files changed
+44
No files matched your search
@@ -0,0 +1,17 @@
|
||||
add_library(InMemoryLogging
|
||||
InMemoryLogHandler.swift)
|
||||
|
||||
set_target_properties(InMemoryLogging PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
||||
|
||||
target_compile_options(InMemoryLogging PRIVATE
|
||||
-enable-upcoming-feature ExistentialAny
|
||||
-enable-upcoming-feature MemberImportVisibility
|
||||
-enable-upcoming-feature InternalImportsByDefault
|
||||
-enable-upcoming-feature NonisolatedNonsendingByDefault
|
||||
-Xfrontend -require-explicit-sendable)
|
||||
|
||||
target_link_libraries(InMemoryLogging PRIVATE Logging)
|
||||
|
||||
_install_target(InMemoryLogging)
|
||||
set_property(GLOBAL APPEND PROPERTY SwiftLog_EXPORTS InMemoryLogging)
|
||||
Reference in new issue
Block a user