# Development

**URL:** https://discourse.cmake.org/c/development/9.md

[Latest](https://discourse.cmake.org/latest.md) · [Categories](https://discourse.cmake.org/categories.md) · [Tags](https://discourse.cmake.org/tags.md)

---

## [About the Development category](https://discourse.cmake.org/t/about-the-development-category/81)

<div class="topic-metadata">

**Author:** [@kwrobot](https://discourse.cmake.org/u/kwrobot)\
**Replies:** 0\
**Last updated:** [October 21, 2019, 6:20pm UTC](https://discourse.cmake.org/t/about-the-development-category/81 "2019-10-21T18:20:19Z")

</div>

Discussion of the development of CMake itself. \[post via email\]

---

## [c++ 20 modules and makefiles: never ?](https://discourse.cmake.org/t/c-20-modules-and-makefiles-never/15566)

<div class="topic-metadata">

**Author:** [@Lieven](https://discourse.cmake.org/u/Lieven)\
**Replies:** 5\
**Last updated:** [November 13, 2026, 5:55pm UTC](https://discourse.cmake.org/t/c-20-modules-and-makefiles-never/15566 "2026-11-13T17:55:22Z")

</div>

Hello, I just wanted to check, if support for c++20 modules for the ‘make’ generator will ever arrive. In another thread in 2023 it was mentioned, I would be nice, wanted, but it is not on the planning. Now that, we ne…

---

## [Error evaluating generator expression --- but exit states == 0 ?](https://discourse.cmake.org/t/error-evaluating-generator-expression-but-exit-states-0/15876)

<div class="topic-metadata">

**Author:** [@johan556](https://discourse.cmake.org/u/johan556)\
**Replies:** 2\
**Last updated:** [November 3, 2026, 7:29am UTC](https://discourse.cmake.org/t/error-evaluating-generator-expression-but-exit-states-0/15876 "2026-11-03T07:29:55Z")

</div>

I tried the 4.5.0-rc1 version and got what seemed like an error (se below). But the cmake invocation went ok (exit == 0), and I could build my project. Shouldn’t this be reported in some other way, not saying that it is…

---

## [ctest: property to exclude a test from default runs unless selected with -R](https://discourse.cmake.org/t/ctest-property-to-exclude-a-test-from-default-runs-unless-selected-with-r/15897)

<div class="topic-metadata">

**Author:** [@rhabacker](https://discourse.cmake.org/u/rhabacker)\
**Replies:** 0\
**Last updated:** [November 1, 2026, 1:26pm UTC](https://discourse.cmake.org/t/ctest-property-to-exclude-a-test-from-default-runs-unless-selected-with-r/15897 "2026-11-01T13:26:12Z")

</div>

Today there is no way to mark a test as “run only on request” without every user remembering -LE or -E. DISABLED never runs, even with -R. Proposal: test property MANUAL. A MANUAL test is skipped unless a -R regex is …

---

## [Efforts to reduce duplication of features in CMake](https://discourse.cmake.org/t/efforts-to-reduce-duplication-of-features-in-cmake/15847)

<div class="topic-metadata">

**Author:** [@Wallby](https://discourse.cmake.org/u/Wallby)\
**Replies:** 7\
**Last updated:** [October 28, 2026, 5:54pm UTC](https://discourse.cmake.org/t/efforts-to-reduce-duplication-of-features-in-cmake/15847 "2026-10-28T17:54:33Z")

</div>

One thing that annoys me about CMake is that there is a bunch of functionality in odd places. For example, list TRANSFORM only works for some string functions, or more recently with predicates as well. But the subset of …

---

## [CMAKE\_SYSTEM\_NAME defaults to Android in Termux: A semantic conflict for native builds](https://discourse.cmake.org/t/cmake-system-name-defaults-to-android-in-termux-a-semantic-conflict-for-native-builds/15887)

<div class="topic-metadata">

**Author:** [@nsyhykui](https://discourse.cmake.org/u/nsyhykui)\
**Replies:** 0\
**Last updated:** [October 25, 2026, 12:45pm UTC](https://discourse.cmake.org/t/cmake-system-name-defaults-to-android-in-termux-a-semantic-conflict-for-native-builds/15887 "2026-10-25T12:45:36Z")

</div>

Hi CMake developers, I am doing a native local build inside Termux. To be precise, Termux is not a traditional Android app development environment. It is essentially a standard Linux environment, with the only differen…

---

## [CMake OSC 7501 terminal status support](https://discourse.cmake.org/t/cmake-osc-7501-terminal-status-support/15884)

<div class="topic-metadata">

**Author:** [@scivision](https://discourse.cmake.org/u/scivision)\
**Replies:** 0\
**Last updated:** [October 22, 2026, 2:25pm UTC](https://discourse.cmake.org/t/cmake-osc-7501-terminal-status-support/15884 "2026-10-22T14:25:59Z")

</div>

Recently a terminal escape sequence protocol OSC 7501 was developed to allow programs to communicate status in a defined way to other programs via the terminal. One use of this is for AI agents running programs like CMak…

---

## [GNUInstallDirs: Special CMAKE\_INSTALL\_FULL\_\<dir\> contain double slash for CMAKE\_INSTALL\_PREFIX starting with /opt when CMP0192 is OLD](https://discourse.cmake.org/t/gnuinstalldirs-special-cmake-install-full-dir-contain-double-slash-for-cmake-install-prefix-starting-with-opt-when-cmp0192-is-old/15879)

<div class="topic-metadata">

**Author:** [@michael-g-matthews](https://discourse.cmake.org/u/michael-g-matthews)\
**Replies:** 2\
**Last updated:** [October 19, 2026, 3:46am UTC](https://discourse.cmake.org/t/gnuinstalldirs-special-cmake-install-full-dir-contain-double-slash-for-cmake-install-prefix-starting-with-opt-when-cmp0192-is-old/15879 "2026-10-19T03:46:08Z")

</div>

Hi all, I believe I’ve run into a small bug in GNUInstallDirs and wanted to check here before opening an issue. When CMAKE\_INSTALL\_PREFIX is under /opt/ and CMP0192 is OLD or unset, the FHS special case produces a doub…

---

## [Feature request: Golang as a first-class language for projects](https://discourse.cmake.org/t/feature-request-golang-as-a-first-class-language-for-projects/15874)

<div class="topic-metadata">

**Author:** [@leha-bot](https://discourse.cmake.org/u/leha-bot)\
**Replies:** 0\
**Last updated:** [October 14, 2026, 3:54pm UTC](https://discourse.cmake.org/t/feature-request-golang-as-a-first-class-language-for-projects/15874 "2026-10-14T15:54:28Z")

</div>

CMake could wrap go tool compile and go pkg-config for proper handling object files compilation and deps pass-through go tool compile actually also could call native compiler (CMAKE\_C\_COMPILER) for cgo FFI.

---

## [Valgrind "Mismatched new/delete size" not reported as a memory issue](https://discourse.cmake.org/t/valgrind-mismatched-new-delete-size-not-reported-as-a-memory-issue/15740)

<div class="topic-metadata">

**Author:** [@npoletz](https://discourse.cmake.org/u/npoletz)\
**Replies:** 5\
**Last updated:** [October 9, 2026, 8:36am UTC](https://discourse.cmake.org/t/valgrind-mismatched-new-delete-size-not-reported-as-a-memory-issue/15740 "2026-10-09T08:36:41Z")

</div>

Hello, I recently encounter a Mismatched new/delete size value reported by valgrind but captured by cmake and thus not reported on our dashboard. The problem seems to be a missing regex in ProcessMemCheckValgrindOutpu…

---

## [FetchContent\_Declare issues misleading error message](https://discourse.cmake.org/t/fetchcontent-declare-issues-misleading-error-message/15858)

<div class="topic-metadata">

**Author:** [@willi.burkhardt](https://discourse.cmake.org/u/willi.burkhardt)\
**Replies:** 1\
**Last updated:** [October 1, 2026, 8:48pm UTC](https://discourse.cmake.org/t/fetchcontent-declare-issues-misleading-error-message/15858 "2026-10-01T20:48:55Z")

</div>

This was observed while using: CMake version 4.4.3 on windows To me, this looks like a clear bug in CMake. While I was switching from Boost 1.86.0 to 1.90.0, I forgot to update to the correct URL\_HASH. Instead of tellin…

---

## [make BMI feature request](https://discourse.cmake.org/t/make-bmi-feature-request/15856)

<div class="topic-metadata">

**Author:** [@Lieven](https://discourse.cmake.org/u/Lieven)\
**Replies:** 13\
**Last updated:** [September 30, 2026, 2:11am UTC](https://discourse.cmake.org/t/make-bmi-feature-request/15856 "2026-09-30T02:11:55Z")

</div>

The idea would be similar to make codegen. This allowed a minimal set of actions to be carried out from the build process, so that static checkers can nicely do their job, this is way better compared to the alternative o…

---

## [Feature: CPACK\_POST\_BUILD\_SCRIPTS code version](https://discourse.cmake.org/t/feature-cpack-post-build-scripts-code-version/15855)

<div class="topic-metadata">

**Author:** [@Wallby](https://discourse.cmake.org/u/Wallby)\
**Replies:** 0\
**Last updated:** [September 28, 2026, 9:53am UTC](https://discourse.cmake.org/t/feature-cpack-post-build-scripts-code-version/15855 "2026-09-28T09:53:45Z")

</div>

Would it be feasible to add POST\_BUILD functionality for CPack without having to create external files? As there also are install(CODE ...) and install(SCRIPT ...). Would CPACK\_POST\_BUILD\_CODE work? A list of individual…

---

## [Feature request: Xcode 27 new .xcproj format](https://discourse.cmake.org/t/feature-request-xcode-27-new-xcproj-format/15850)

<div class="topic-metadata">

**Author:** [@ringoz](https://discourse.cmake.org/u/ringoz)\
**Replies:** 1\
**Last updated:** [September 24, 2026, 7:58am UTC](https://discourse.cmake.org/t/feature-request-xcode-27-new-xcproj-format/15850 "2026-09-24T07:58:45Z")

</div>

There is a new JSON file format .xcproj compatible with Xcode 27 and later. Let’s support it.

---

## [Preliminary CPack APK Support](https://discourse.cmake.org/t/preliminary-cpack-apk-support/3767)

<div class="topic-metadata">

**Author:** [@Honeybunch](https://discourse.cmake.org/u/Honeybunch)\
**Replies:** 6\
**Last updated:** [September 23, 2026, 5:54pm UTC](https://discourse.cmake.org/t/preliminary-cpack-apk-support/3767 "2026-09-23T17:54:28Z")

</div>

I’ve long ached for a way to build Android applications solely in my own CMake-based projects. I simply despise Android Studio as I’m mostly interested in building C & C++ heavy applications with little to no need for Ja…

---

## [CMAKE\_EXPERIMENTAL\_CXX\_IMPORT\_STD value history and state](https://discourse.cmake.org/t/cmake-experimental-cxx-import-std-value-history-and-state/15712)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 5\
**Last updated:** [September 23, 2026, 12:08pm UTC](https://discourse.cmake.org/t/cmake-experimental-cxx-import-std-value-history-and-state/15712 "2026-09-23T12:08:27Z")

</div>

AFAIK, this is are the current rules to activate import std; with last stable CMake versions: if(CMAKE\_VERSION VERSION\_GREATER\_EQUAL "3.30.0") if(CMAKE\_VERSION VERSION\_LESS "3.31.8") set(CMAKE\_EXPERIMENTAL\_C…

---

## [Support for multiple toolchains](https://discourse.cmake.org/t/support-for-multiple-toolchains/15842)

<div class="topic-metadata">

**Author:** [@rleigh](https://discourse.cmake.org/u/rleigh)\
**Replies:** 0\
**Last updated:** [September 18, 2026, 2:04pm UTC](https://discourse.cmake.org/t/support-for-multiple-toolchains/15842 "2026-09-18T14:04:40Z")

</div>

I have been working on an experimental CMake implementation that supports more than one toolchain in a single configure, generate, and build operation. I would like to get feedback on the use cases, terminology, public…

---

## [Possible Bug: Clang-FindBinUtils.cmake searches for clang-related binaries in an unexpected order](https://discourse.cmake.org/t/possible-bug-clang-findbinutils-cmake-searches-for-clang-related-binaries-in-an-unexpected-order/15832)

<div class="topic-metadata">

**Author:** [@JanMatyasCodasip](https://discourse.cmake.org/u/JanMatyasCodasip)\
**Replies:** 3\
**Last updated:** [September 15, 2026, 12:59pm UTC](https://discourse.cmake.org/t/possible-bug-clang-findbinutils-cmake-searches-for-clang-related-binaries-in-an-unexpected-order/15832 "2026-09-15T12:59:53Z")

</div>

Hello, I suspect that there is a bug in how Clang-FindBinUtils.cmake searches for clang-related executables (e.g. clang-scan-deps). The order of the search appears incorrect. The search iterates over two categories: f…

---

## [Suggestion for CMake 5](https://discourse.cmake.org/t/suggestion-for-cmake-5/15820)

<div class="topic-metadata">

**Author:** [@lostbits](https://discourse.cmake.org/u/lostbits)\
**Replies:** 0\
**Last updated:** [September 2, 2026, 7:08pm UTC](https://discourse.cmake.org/t/suggestion-for-cmake-5/15820 "2026-09-02T19:08:31Z")

</div>

I have a suggestion of a path forward for CMake. It contains a new way of looking at the grammar and suggestions for means which allow incorporation of new languages without too much development overhead. It is in a mult…

---

## [The CMake Language BNF appears ambiguous](https://discourse.cmake.org/t/the-cmake-language-bnf-appears-ambiguous/15802)

<div class="topic-metadata">

**Author:** [@SlipBits](https://discourse.cmake.org/u/SlipBits)\
**Replies:** 19\
**Last updated:** [August 31, 2026, 4:37pm UTC](https://discourse.cmake.org/t/the-cmake-language-bnf-appears-ambiguous/15802 "2026-08-31T16:37:43Z")

</div>

I just started looking through the CMake Language and associated BNF. It might be useful to see if your language is suitable for a LALR(1) parser generator (bison) or a LL(1) parser generator (ANTLR) after separating lex…

---

## [Possible race condition in ProcessUNIX process creation](https://discourse.cmake.org/t/possible-race-condition-in-processunix-process-creation/15815)

<div class="topic-metadata">

**Author:** [@Oskari\_Alaranta](https://discourse.cmake.org/u/Oskari_Alaranta)\
**Replies:** 1\
**Last updated:** [August 31, 2026, 1:19pm UTC](https://discourse.cmake.org/t/possible-race-condition-in-processunix-process-creation/15815 "2026-08-31T13:19:39Z")

</div>

When creating a process in kwsysProcessCreate, we create a pgidPipe which gets closed when the child does the execvp call. After fork, parent reads the pgidPipe until it returns EOF or an error. There is a race condition…

---

## [Target requires "CXX26" but CMake does not know the flags to enable it](https://discourse.cmake.org/t/target-requires-cxx26-but-cmake-does-not-know-the-flags-to-enable-it/15762)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 5\
**Last updated:** [August 13, 2026, 2:02pm UTC](https://discourse.cmake.org/t/target-requires-cxx26-but-cmake-does-not-know-the-flags-to-enable-it/15762 "2026-08-13T14:02:44Z")

</div>

I want to test c++26 with import std; too if(FMT\_MODULE) add\_library(fmt-module) add\_library(fmt::fmt-module ALIAS fmt-module) target\_compile\_options( fmt-module PUBLIC $\<$\<AND:$\<COMPILE\_LANG…

---

## [AUTOMOC on the Visual Studio generators: two extra projects per target since 4.4.0 — could this be made configurable?](https://discourse.cmake.org/t/automoc-on-the-visual-studio-generators-two-extra-projects-per-target-since-4-4-0-could-this-be-made-configurable/15768)

<div class="topic-metadata">

**Author:** [@amoyer](https://discourse.cmake.org/u/amoyer)\
**Replies:** 7\
**Last updated:** [August 10, 2026, 8:45pm UTC](https://discourse.cmake.org/t/automoc-on-the-visual-studio-generators-two-extra-projects-per-target-since-4-4-0-could-this-be-made-configurable/15768 "2026-08-10T20:45:00Z")

</div>

Hi all, We maintain a fairly large Qt-based software, with around 790 Visual Studio projects. Moving CMake from 4.3.4 to 4.4.0 took the solution to roughly 2210. Every target with AUTOMOC enabled now gets two extra on…

---

## [4.4.2 breaks kio 5.116.0 on some platforms](https://discourse.cmake.org/t/4-4-2-breaks-kio-5-116-0-on-some-platforms/15782)

<div class="topic-metadata">

**Author:** [@wiz](https://discourse.cmake.org/u/wiz)\
**Replies:** 4\
**Last updated:** [August 7, 2026, 4:56pm UTC](https://discourse.cmake.org/t/4-4-2-breaks-kio-5-116-0-on-some-platforms/15782 "2026-08-07T16:56:22Z")

</div>

The timing fits, so I suspect that the update from 4.4.0 to 4.4.2 in pkgsrc broke the build of kio 5.116.0 on a couple platforms. Here’s an example build log: https://releng.netbsd.org/pkgreports/shadow/HEAD/NetBSD-11.…

---

## [Possible Bug: Incorrect location of \<LINK\_FLAGS\> and \<LINK\_LIBRARIES\> in CMAKE\_${lang}\_LINK\_EXECUTABLE for IntelLLVM on Windows.](https://discourse.cmake.org/t/possible-bug-incorrect-location-of-link-flags-and-link-libraries-in-cmake-lang-link-executable-for-intelllvm-on-windows/15779)

<div class="topic-metadata">

**Author:** [@marco1475](https://discourse.cmake.org/u/marco1475)\
**Replies:** 2\
**Last updated:** [August 6, 2026, 7:53pm UTC](https://discourse.cmake.org/t/possible-bug-incorrect-location-of-link-flags-and-link-libraries-in-cmake-lang-link-executable-for-intelllvm-on-windows/15779 "2026-08-06T19:53:33Z")

</div>

Modules\\Platform\\Windows-IntelLLVM.cmake on line 43 puts \<LINK\_FLAGS\> and \<LINK\_LIBRARIES\> before /link. Is this on purpose? It forces all linker options set up via the LINK\_OPTIONS target property to be “escaped” by t…

---

## [About --list-presets and 'condition'](https://discourse.cmake.org/t/about-list-presets-and-condition/15767)

<div class="topic-metadata">

**Author:** [@maximilian-tech](https://discourse.cmake.org/u/maximilian-tech)\
**Replies:** 1\
**Last updated:** [August 4, 2026, 4:37pm UTC](https://discourse.cmake.org/t/about-list-presets-and-condition/15767 "2026-08-04T16:37:47Z")

</div>

Consider the following CMakePresets.json file: { "version": 6, "configurePresets":\[ { "name":"c1", "condition": { "type": "equals", "lhs": "$env{\_\_UNFULLFILLED\_\_}", "rhs": "set\_value" …

---

## [Bug: FindPython arch detection is bad with Windows on Arm](https://discourse.cmake.org/t/bug-findpython-arch-detection-is-bad-with-windows-on-arm/15769)

<div class="topic-metadata">

**Author:** [@NAP64](https://discourse.cmake.org/u/NAP64)\
**Replies:** 3\
**Last updated:** [August 1, 2026, 2:26pm UTC](https://discourse.cmake.org/t/bug-findpython-arch-detection-is-bad-with-windows-on-arm/15769 "2026-08-01T14:26:39Z")

</div>

Python architecture ID is aarch64, which does not contain ARM, thus fails the match. CMake\\share\\cmake-4.4\\Modules\\FindPython\\Support.cmake:1206 My current patch is changing the line to if ((\\\_${\\\_PYTHON\_PREFIX}\*ARCHI…

---

## [Question about non numeric versioning discussion](https://discourse.cmake.org/t/question-about-non-numeric-versioning-discussion/15761)

<div class="topic-metadata">

**Author:** [@Wallby](https://discourse.cmake.org/u/Wallby)\
**Replies:** 3\
**Last updated:** [July 28, 2026, 6:03pm UTC](https://discourse.cmake.org/t/question-about-non-numeric-versioning-discussion/15761 "2026-07-28T18:03:58Z")

</div>

Hello, I wanted to ask a bit about the state of discussion #23649 (can’t link due to new user limitation). I saw that the proposed options are currently either modifying the if expression to allow for additional paramete…

---

## [FindwxWidgets.cmake on Windows on ARM support is broken](https://discourse.cmake.org/t/findwxwidgets-cmake-on-windows-on-arm-support-is-broken/15760)

<div class="topic-metadata">

**Author:** [@Noisyfox](https://discourse.cmake.org/u/Noisyfox)\
**Replies:** 2\
**Last updated:** [July 27, 2026, 2:13pm UTC](https://discourse.cmake.org/t/findwxwidgets-cmake-on-windows-on-arm-support-is-broken/15760 "2026-07-27T14:13:16Z")

</div>

wxWidgets installs the librarys with arm64 suffix when build for WoA. This was done in Building wxWidgets using CMAKE for ARM64 MSW, it generates the wrong lib folder name · Issue #23347 · wxWidgets/wxWidgets · GitHub H…

---

## [let cmake use clang-cl when use ninja, not clang++ ,so people can migrate from visual studio nmake to ninja](https://discourse.cmake.org/t/let-cmake-use-clang-cl-when-use-ninja-not-clang-so-people-can-migrate-from-visual-studio-nmake-to-ninja/15755)

<div class="topic-metadata">

**Author:** [@photonest3](https://discourse.cmake.org/u/photonest3)\
**Replies:** 1\
**Last updated:** [July 22, 2026, 2:35am UTC](https://discourse.cmake.org/t/let-cmake-use-clang-cl-when-use-ninja-not-clang-so-people-can-migrate-from-visual-studio-nmake-to-ninja/15755 "2026-07-22T02:35:47Z")

</div>

let cmake use clang-cl when use ninja, not clang++ ,so people can migrate from visual studio nmake to ninja. OpenClaw (codebuddy.ai) output translate: Here’s a natural, technically-accurate English translation (good fo…

[Next page](https://discourse.cmake.org/c/development/9.md?page=1)
