Skip to content

Commit 25ff8c1

Browse files
Fix CMAKE_BUILD_TYPE cache binding in BuildType.cmake and cut a patch release. (#5)
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.
1 parent 2e1ce05 commit 25ff8c1

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

‎CHANGES.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# WriteDebugString - Changes <!-- omit in toc -->
22

33

4+
## 0.0.3 - 27th August 2026
5+
6+
* 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 …)`);
7+
8+
49
## 0.0.2 - 24th August 2026
510

611
* Updated the CMake configuration to honour caller-supplied C and C++ standards and report the build type;

‎NEWS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
| Date | News Item |
55
| -------------------- | -------------------------------------------------- |
6+
| 27th August 2026 | [0.0.3 released](https://github.com/sistools/WriteDebugString/releases/tag/0.0.3) |
67
| 24th August 2026 | [0.0.2 released](https://github.com/sistools/WriteDebugString/releases/tag/0.0.2) |
78
| 3rd August 2026 | 0.0.1 released |
89

‎cmake/BuildType.cmake‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
21
# ######################################################################## #
32
# File: /cmake/BuildType.cmake
43
#
54
# Purpose: CMake module file (for BuildType)
65
#
76
# Created: 16th October 2019
8-
# Updated: 25th October 2024
7+
# Updated: 27th August 2026
98
#
109
# ######################################################################## #
1110

@@ -45,7 +44,7 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
4544

4645
message(STATUS "Setting build type to '${DEFAULT_BUILD_TYPE}' as none was specified.")
4746

48-
set(CACHE CMAKE_BUILD_TYPE "${DEFAULT_BUILD_TYPE}"
47+
set(CMAKE_BUILD_TYPE "${DEFAULT_BUILD_TYPE}" CACHE
4948
STRING "Choose the type of build." FORCE
5049
)
5150

@@ -56,4 +55,3 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
5655
endif()
5756

5857
# ############################## end of file ############################# #
59-

‎doc/writedebugstring.1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" Copyright (c) 2020-2026, Matthew Wilson and Synesis Information Systems
22
.\"
3-
.TH WRITEDEBUGSTRING 1 "August 2026" "writedebugstring 0.0.2" "User Commands"
3+
.TH WRITEDEBUGSTRING 1 "August 2026" "writedebugstring 0.0.3" "User Commands"
44
.SH NAME
55
writedebugstring \- write messages to the Windows debug output stream
66
.SH SYNOPSIS

‎main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
#define WRITEDEBUGSTRING_VER_MAJOR 0
1919
#define WRITEDEBUGSTRING_VER_MINOR 0
20-
#define WRITEDEBUGSTRING_VER_PATCH 2
20+
#define WRITEDEBUGSTRING_VER_PATCH 3
2121

2222

2323
int main(int argc, char* argv[])

0 commit comments

Comments
 (0)