From c8d249d8f789f9603f0d7015436992a70cc8fa96 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Wed, 26 Aug 2026 16:22:53 +1000 Subject: [PATCH] Fix CMAKE_BUILD_TYPE cache binding in BuildType.cmake and cut a patch release. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The module used set(CACHE CMAKE_BUILD_TYPE …), which does not set the build-type cache entry; use set(CMAKE_BUILD_TYPE … CACHE …) instead. Bump the patch version and refresh CHANGES, NEWS, and man-page version strings for 27th August 2026. --- CHANGES.md | 5 +++++ NEWS.md | 1 + cmake/BuildType.cmake | 6 ++---- doc/writedebugstring.1 | 2 +- main.c | 2 +- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 49026d4..6bcd478 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,11 @@ # WriteDebugString - Changes +## 0.0.3 - 27th August 2026 + +* Fixed **cmake/BuildType.cmake** so the default `CMAKE_BUILD_TYPE` is set correctly in the CMake cache (`set(CMAKE_BUILD_TYPE … CACHE …)` instead of `set(CACHE CMAKE_BUILD_TYPE …)`); + + ## 0.0.2 - 24th August 2026 * Updated the CMake configuration to honour caller-supplied C and C++ standards and report the build type; diff --git a/NEWS.md b/NEWS.md index 12c7d50..c280654 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,6 +3,7 @@ | Date | News Item | | -------------------- | -------------------------------------------------- | +| 27th August 2026 | [0.0.3 released](https://github.com/sistools/WriteDebugString/releases/tag/0.0.3) | | 24th August 2026 | [0.0.2 released](https://github.com/sistools/WriteDebugString/releases/tag/0.0.2) | | 3rd August 2026 | 0.0.1 released | diff --git a/cmake/BuildType.cmake b/cmake/BuildType.cmake index a315b8d..e72619c 100644 --- a/cmake/BuildType.cmake +++ b/cmake/BuildType.cmake @@ -1,11 +1,10 @@ - # ######################################################################## # # File: /cmake/BuildType.cmake # # Purpose: CMake module file (for BuildType) # # Created: 16th October 2019 -# Updated: 25th October 2024 +# Updated: 27th August 2026 # # ######################################################################## # @@ -45,7 +44,7 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) message(STATUS "Setting build type to '${DEFAULT_BUILD_TYPE}' as none was specified.") - set(CACHE CMAKE_BUILD_TYPE "${DEFAULT_BUILD_TYPE}" + set(CMAKE_BUILD_TYPE "${DEFAULT_BUILD_TYPE}" CACHE STRING "Choose the type of build." FORCE ) @@ -56,4 +55,3 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) endif() # ############################## end of file ############################# # - diff --git a/doc/writedebugstring.1 b/doc/writedebugstring.1 index b749a42..acd205e 100644 --- a/doc/writedebugstring.1 +++ b/doc/writedebugstring.1 @@ -1,6 +1,6 @@ .\" Copyright (c) 2020-2026, Matthew Wilson and Synesis Information Systems .\" -.TH WRITEDEBUGSTRING 1 "August 2026" "writedebugstring 0.0.2" "User Commands" +.TH WRITEDEBUGSTRING 1 "August 2026" "writedebugstring 0.0.3" "User Commands" .SH NAME writedebugstring \- write messages to the Windows debug output stream .SH SYNOPSIS diff --git a/main.c b/main.c index acfe776..6a5db3c 100644 --- a/main.c +++ b/main.c @@ -17,7 +17,7 @@ #define WRITEDEBUGSTRING_VER_MAJOR 0 #define WRITEDEBUGSTRING_VER_MINOR 0 -#define WRITEDEBUGSTRING_VER_PATCH 2 +#define WRITEDEBUGSTRING_VER_PATCH 3 int main(int argc, char* argv[])