From 47a917767fde0cd7f5b5dfdabbec733d2cb2dd95 Mon Sep 17 00:00:00 2001 From: mitra Date: Wed, 12 Aug 2026 09:49:22 -0400 Subject: [PATCH] Add CMake build instructions to README (#493) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 4198865..747020c 100644 --- a/README.md +++ b/README.md @@ -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`. +