mirror of
https://github.com/apple/swift-log
synced 2026-11-22 03:40:39 +00:00
Add CMake build instructions to README (#493)
Add CMake build instructions for macOS, Windows and Linux including requirements and installation steps. ### Motivation: Document how to build SwiftLog with CMake for projects that use mixed build systems and need integration outside of Swift Package Manager. ### Modifications: - Added a new “Building with CMake” section to `README.md` - Documented minimum requirements: - Swift 6.1+ - CMake 3.19+ - Ninja 1.10+ - Added macOS build examples for both Xcode and Ninja generators - Added Windows build instructions using Ninja - Added install instructions and notes about shared vs. static builds - Clarified that tests are not included in the CMake build and are still managed through Swift Package Manager ### Result: Users now have platform-specific guidance for building SwiftLog with CMake on macOS, Windows and Linux. Fixes #492
This commit is contained in:
1 parent
f054da4c19
commit
47a917767f
1 file changed
+5
@@ -67,3 +67,8 @@ The community has built numerous specialized logging backends.
|
||||
A great way to discover available log backend implementations is searching the
|
||||
[Swift Package Index](https://swiftpackageindex.com/search?query=swift-log)
|
||||
for the `swift-log` keyword.
|
||||
|
||||
## Building with CMake
|
||||
|
||||
While Swift Package Manager (SPM) is the primary build system for development and testing, CMake build support is also available for integrated or mixed build environments if needed. Note that tests are not included in the CMake build, they are managed through Swift Package Manager with `swift test`.
|
||||
|
||||
Reference in new issue
Block a user