# 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\]

---

## [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:** 8\
**Last updated:** [September 24, 2026, 12:10pm UTC](https://discourse.cmake.org/t/preliminary-cpack-apk-support/3767 "2026-09-24T12:10:14Z")

</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…

---

## [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.

---

## [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…

---

## [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:** 0\
**Last updated:** [September 22, 2026, 9:11am UTC](https://discourse.cmake.org/t/efforts-to-reduce-duplication-of-features-in-cmake/15847 "2026-09-22T09:11:55Z")

</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 …

---

## [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…

---

## [CMake fails to compile with the latest version of OpenSSL 4.x.x.](https://discourse.cmake.org/t/cmake-fails-to-compile-with-the-latest-version-of-openssl-4-x-x/15753)

<div class="topic-metadata">

**Author:** [@Michal\_Karwacki](https://discourse.cmake.org/u/Michal_Karwacki)\
**Replies:** 0\
**Last updated:** [July 18, 2026, 8:02pm UTC](https://discourse.cmake.org/t/cmake-fails-to-compile-with-the-latest-version-of-openssl-4-x-x/15753 "2026-07-18T20:02:02Z")

</div>

CMake fails to compile with the latest version of OpenSSL 4.x.x. The system is Debian 13. I will provide more information tomorrow.

---

## [Problem building v4.4.0 on MacOS](https://discourse.cmake.org/t/problem-building-v4-4-0-on-macos/15750)

<div class="topic-metadata">

**Author:** [@arnstein](https://discourse.cmake.org/u/arnstein)\
**Replies:** 2\
**Last updated:** [July 17, 2026, 6:06pm UTC](https://discourse.cmake.org/t/problem-building-v4-4-0-on-macos/15750 "2026-07-17T18:06:55Z")

</div>

I have the latest MacOS for ARM 26.5.2 and the latest version of Xcode. I have a spot of trouble building CMake from git tag v4.4.0. In the past, I have found Apple’s provided libiconv files to be inadequate, so I built …

---

## [CXX-Modules: import std does still not work on Linux with clang++](https://discourse.cmake.org/t/cxx-modules-import-std-does-still-not-work-on-linux-with-clang/15262)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 14\
**Last updated:** [July 17, 2026, 4:37pm UTC](https://discourse.cmake.org/t/cxx-modules-import-std-does-still-not-work-on-linux-with-clang/15262 "2026-07-17T16:37:13Z")

</div>

/root/cmake/cmake-4.0.4-linux-x86\_64/share/cmake-4.0/Modules/CMakeDetermineCompilerId.cmake(357): if(xCXX STREQUAL xCXX AND EXISTS /root/cmake/cmake-4.0.4-linux-x86\_64/share/cmake-4.0/Modules/CXX-DetectStdlib.h AND ( xC…

---

## [Add warning message in CMakeDependentOption](https://discourse.cmake.org/t/add-warning-message-in-cmakedependentoption/15751)

<div class="topic-metadata">

**Author:** [@Growl1234](https://discourse.cmake.org/u/Growl1234)\
**Replies:** 4\
**Last updated:** [July 17, 2026, 2:03pm UTC](https://discourse.cmake.org/t/add-warning-message-in-cmakedependentoption/15751 "2026-07-17T14:03:36Z")

</div>

Hi all, I think, it would be great to add a warning message into CMakeDependentOption.cmake. For example, if CMakeLists.txt defines: cmake\_dependent\_option(USE\_A "description" ON "USE\_B" OFF) but users pass -DUSE\_B=O…

---

## [Should cmake-gui restore the previous binary directory when the source directory is empty?](https://discourse.cmake.org/t/should-cmake-gui-restore-the-previous-binary-directory-when-the-source-directory-is-empty/15746)

<div class="topic-metadata">

**Author:** [@pkeir](https://discourse.cmake.org/u/pkeir)\
**Replies:** 3\
**Last updated:** [July 13, 2026, 10:06pm UTC](https://discourse.cmake.org/t/should-cmake-gui-restore-the-previous-binary-directory-when-the-source-directory-is-empty/15746 "2026-07-13T22:06:11Z")

</div>

When I start cmake-gui, the “Where is the source code” field is empty, but “Where to build the binaries” still contains the binary directory used during the previous session. Is this the expected behaviour? It seems po…

---

## [Request for Comment: string() camelCase, snake\_case, split, and capitalize functionality](https://discourse.cmake.org/t/request-for-comment-string-camelcase-snake-case-split-and-capitalize-functionality/13215)

<div class="topic-metadata">

**Author:** [@Tim\_Finnegan](https://discourse.cmake.org/u/Tim_Finnegan)\
**Replies:** 6\
**Last updated:** [July 13, 2026, 1:24pm UTC](https://discourse.cmake.org/t/request-for-comment-string-camelcase-snake-case-split-and-capitalize-functionality/13215 "2026-07-13T13:24:19Z")

</div>

Introduction I would like to add some more functionality to CMake’s string() processing function, and would like to discuss these changes and receive feedback. Once I’ve gotten some feedback, I’ll look at submitting a PR…

---

## [Latest CMake preset schema file is not up to date?](https://discourse.cmake.org/t/latest-cmake-preset-schema-file-is-not-up-to-date/10013)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 7\
**Last updated:** [July 8, 2026, 5:20pm UTC](https://discourse.cmake.org/t/latest-cmake-preset-schema-file-is-not-up-to-date/10013 "2026-07-08T17:20:39Z")

</div>

The CMake presets schema is not the version 8? bash-5.2$ diff -cw ~/Downloads/schema.json ./Help/manual/presets/schema.json \*\*\* /Users/clausklein/Downloads/schema.json Tue Aug 15 16:27:45 2023 --- ./Help/manual/presets…

---

## [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:** 1\
**Last updated:** [July 8, 2026, 4:01pm UTC](https://discourse.cmake.org/t/valgrind-mismatched-new-delete-size-not-reported-as-a-memory-issue/15740 "2026-07-08T16:01:29Z")

</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…

---

## [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:** 4\
**Last updated:** [July 6, 2026, 4:36pm UTC](https://discourse.cmake.org/t/c-20-modules-and-makefiles-never/15566 "2026-07-06T16:36:31Z")

</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…

---

## [CMakePresets and location of source folder](https://discourse.cmake.org/t/cmakepresets-and-location-of-source-folder/3118)

<div class="topic-metadata">

**Author:** [@Kerstin\_Keller](https://discourse.cmake.org/u/Kerstin_Keller)\
**Replies:** 5\
**Last updated:** [July 6, 2026, 7:26am UTC](https://discourse.cmake.org/t/cmakepresets-and-location-of-source-folder/3118 "2026-07-06T07:26:33Z")

</div>

According to the documentation, the new CMakePresets.json file needs to be located next to the main CMakeLists.txt file. I now have the usecase, that I would like to generate those CMakePresets.json files (I am using Co…

---

## [Why is -isystem include path not used while CXX\_MODULE dependencies scan?](https://discourse.cmake.org/t/why-is-isystem-include-path-not-used-while-cxx-module-dependencies-scan/15729)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 4\
**Last updated:** [July 6, 2026, 7:23am UTC](https://discourse.cmake.org/t/why-is-isystem-include-path-not-used-while-cxx-module-dependencies-scan/15729 "2026-07-06T07:23:11Z")

</div>

same problem with clang-22 and gcc-16 on OSX bash-5.3$ ninja -C build/ -j 1 -k 1 -v ninja: Entering directory \`build/' \[1/183\] "/usr/local/Cellar/llvm/22.1.8/bin/clang-scan-deps" -format=p1689 -- /usr/local/Cellar/llvm/…

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