# Development

**URL:** https://discourse.cmake.org/c/development/9.md?page=1

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

**Page:** 2

---

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

---

## [file not found error: /lib/share/libc++/v1/std.cppm with Clang 21.1.7 on Linux](https://discourse.cmake.org/t/file-not-found-error-lib-share-libc-v1-std-cppm-with-clang-21-1-7-on-linux/15368)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 4\
**Last updated:** [June 29, 2026, 6:14pm UTC](https://discourse.cmake.org/t/file-not-found-error-lib-share-libc-v1-std-cppm-with-clang-21-1-7-on-linux/15368 "2026-06-29T18:14:02Z")

</div>

clang++ --version Ubuntu clang version 21.1.7 (++20251127113503+9ed1927442a4-1~exp1~20251127113518.64) Target: x86\_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm-21/bin clang++ -print-file-name=libc++.mo…

---

## [C++26 contracts](https://discourse.cmake.org/t/c-26-contracts/15644)

<div class="topic-metadata">

**Author:** [@Lieven](https://discourse.cmake.org/u/Lieven)\
**Replies:** 1\
**Last updated:** [June 29, 2026, 6:08pm UTC](https://discourse.cmake.org/t/c-26-contracts/15644 "2026-06-29T18:08:31Z")

</div>

How will cmake deal with this ? For example on gcc, one has to specify both ‘-fcontracts’ both to the compiler, and to the linker. No idea what the option will be for clang or MSVC. Will this be left to the user, or w…

---

## [\[RFC\] Proposal to add HG (T-Head General-compute) as a first-class language](https://discourse.cmake.org/t/rfc-proposal-to-add-hg-t-head-general-compute-as-a-first-class-language/15733)

<div class="topic-metadata">

**Author:** [@jimmy.hj](https://discourse.cmake.org/u/jimmy.hj)\
**Replies:** 1\
**Last updated:** [June 29, 2026, 6:00pm UTC](https://discourse.cmake.org/t/rfc-proposal-to-add-hg-t-head-general-compute-as-a-first-class-language/15733 "2026-06-29T18:00:42Z")

</div>

Hi everyone, I’d like to propose adding HG as a first-class language in CMake, similar to CUDA and HIP. Looking for feedback before submitting a formal MR. I am from T-Head Semiconductor ( https://www.t-head.cn ), a su…

---

## [FetchContent/ExternalProject: support cloning single commit by hash](https://discourse.cmake.org/t/fetchcontent-externalproject-support-cloning-single-commit-by-hash/15723)

<div class="topic-metadata">

**Author:** [@melak47](https://discourse.cmake.org/u/melak47)\
**Replies:** 0\
**Last updated:** [June 20, 2026, 2:27pm UTC](https://discourse.cmake.org/t/fetchcontent-externalproject-support-cloning-single-commit-by-hash/15723 "2026-06-20T14:27:09Z")

</div>

Git 2.49 added support for a --revision=\<rev\> option for git clone, which allows downloading only commits leading up to that revision. Would it be desirable to add support for this in CMake? Perhaps via a new keyword …

---

## [\[BUG\] CMake internally specified custom target output for MSBuild is never generated and causes target to always be out-of-date](https://discourse.cmake.org/t/bug-cmake-internally-specified-custom-target-output-for-msbuild-is-never-generated-and-causes-target-to-always-be-out-of-date/15704)

<div class="topic-metadata">

**Author:** [@Knitschi](https://discourse.cmake.org/u/Knitschi)\
**Replies:** 2\
**Last updated:** [June 10, 2026, 12:13pm UTC](https://discourse.cmake.org/t/bug-cmake-internally-specified-custom-target-output-for-msbuild-is-never-generated-and-causes-target-to-always-be-out-of-date/15704 "2026-06-10T12:13:42Z")

</div>

Hi guys I think there is a bug with custom targets and the Visual Studio Generator. The .vcxproj file for the custom target contains a line that specifies the MyTarget file as output of the custom target. \<Outputs Cond…

---

## [cm\_cxx\_features.cmake warning filter misses cc1plus "-mavx10.1" warning, breaks bootstrap on Intel Granite Rapids with GCC 14.3](https://discourse.cmake.org/t/cm-cxx-features-cmake-warning-filter-misses-cc1plus-mavx10-1-warning-breaks-bootstrap-on-intel-granite-rapids-with-gcc-14-3/15660)

<div class="topic-metadata">

**Author:** [@ejames604](https://discourse.cmake.org/u/ejames604)\
**Replies:** 1\
**Last updated:** [May 27, 2026, 2:08pm UTC](https://discourse.cmake.org/t/cm-cxx-features-cmake-warning-filter-misses-cc1plus-mavx10-1-warning-breaks-bootstrap-on-intel-granite-rapids-with-gcc-14-3/15660 "2026-05-27T14:08:26Z")

</div>

Description When CMake 3.31.8 bootstraps with GCC 14.3 on an Intel CPU that enables -mavx10.1 via -march=native (Granite Rapids, future AVX10-capable parts), the C++11 feature checks in Source/Checks/cm\_cxx\_features.cm…

---

## [check\_c\_source\_compiles order CMAKE\_REQUIRED\_FLAGS](https://discourse.cmake.org/t/check-c-source-compiles-order-cmake-required-flags/15667)

<div class="topic-metadata">

**Author:** [@Niram](https://discourse.cmake.org/u/Niram)\
**Replies:** 0\
**Last updated:** [May 26, 2026, 7:15pm UTC](https://discourse.cmake.org/t/check-c-source-compiles-order-cmake-required-flags/15667 "2026-05-26T19:15:34Z")

</div>

Hello, Why not add CMAKE\_REQUIRED\_FLAGS before CMAKE\_\_FLAGS instead? https://cmake.org/cmake/help/latest/module/CheckCSourceCompiles.html CMAKE\_REQUIRED\_FLAGS A space-separated string of additional flags to pass to …

---

## [CPack auto generating Inno Setup Tasks desktopicon](https://discourse.cmake.org/t/cpack-auto-generating-inno-setup-tasks-desktopicon/15649)

<div class="topic-metadata">

**Author:** [@Nocaster60](https://discourse.cmake.org/u/Nocaster60)\
**Replies:** 2\
**Last updated:** [May 19, 2026, 2:41pm UTC](https://discourse.cmake.org/t/cpack-auto-generating-inno-setup-tasks-desktopicon/15649 "2026-05-19T14:41:04Z")

</div>

I’ve just installed CMake 4.3.2 and run it on a build that produces an Inno Setup installer. The installer has a “Create a desktop shortcut” check box that it didn’t have when built using an earlier version of CMake. Loo…

---

## [FASTBuild generator Unity build issues](https://discourse.cmake.org/t/fastbuild-generator-unity-build-issues/15634)

<div class="topic-metadata">

**Author:** [@kamchatka-volcano](https://discourse.cmake.org/u/kamchatka-volcano)\
**Replies:** 4\
**Last updated:** [May 18, 2026, 6:02pm UTC](https://discourse.cmake.org/t/fastbuild-generator-unity-build-issues/15634 "2026-05-18T18:02:02Z")

</div>

Hi, thanks a lot for adding support for FASTBuild! I’m experimenting with enabling it in a large CMake-based project, and I noticed several quirks: Is there any technical reason to use UnityInputIsolatedFiles instead…

---

## [use compilers set by CMAKE\_\*\_COMPILER in ctest](https://discourse.cmake.org/t/use-compilers-set-by-cmake-compiler-in-ctest/15652)

<div class="topic-metadata">

**Author:** [@kkwli](https://discourse.cmake.org/u/kkwli)\
**Replies:** 3\
**Last updated:** [May 13, 2026, 3:54pm UTC](https://discourse.cmake.org/t/use-compilers-set-by-cmake-compiler-in-ctest/15652 "2026-05-13T15:54:50Z")

</div>

I set the CMAKE\_\*\_COMPILER when building cmake from scratch. When I run ctest, it seems that it always uses the one on the system. If I set CXX in running ctest, it will pick up the one set by CXX. Is it the expected beh…

---

## [Suggestion: warn/error when a module is found only by case insensitive match](https://discourse.cmake.org/t/suggestion-warn-error-when-a-module-is-found-only-by-case-insensitive-match/15619)

<div class="topic-metadata">

**Author:** [@LegalizeAdulthood](https://discourse.cmake.org/u/LegalizeAdulthood)\
**Replies:** 1\
**Last updated:** [May 12, 2026, 5:04pm UTC](https://discourse.cmake.org/t/suggestion-warn-error-when-a-module-is-found-only-by-case-insensitive-match/15619 "2026-05-12T17:04:31Z")

</div>

For better or worse, NTFS is case insensitive. It’s too easy to make a mistake of adding a directory to the CMake module search path, but the added entry doesn’t match the case of the directory in the filesystem. So yo…

---

## [ctest\_build: Missing "obvious" error and warning matching regex?](https://discourse.cmake.org/t/ctest-build-missing-obvious-error-and-warning-matching-regex/15651)

<div class="topic-metadata">

**Author:** [@sjoubert](https://discourse.cmake.org/u/sjoubert)\
**Replies:** 0\
**Last updated:** [May 12, 2026, 2:01pm UTC](https://discourse.cmake.org/t/ctest-build-missing-obvious-error-and-warning-matching-regex/15651 "2026-05-12T14:01:20Z")

</div>

I just found that some warnings from a tool I run in a custom command did not get reported in my cdash build while I was seeing them in my local build. It turns out the warning lines start with warning: , but the built-…

---

## [Feature Request: install(TARGETS RUNTIME\_DEPENDENCIES) should add $\<TARGET\_RUNTIME\_DLL\_DIRS:...\>](https://discourse.cmake.org/t/feature-request-install-targets-runtime-dependencies-should-add-target-runtime-dll-dirs/15650)

<div class="topic-metadata">

**Author:** [@dbs4261](https://discourse.cmake.org/u/dbs4261)\
**Replies:** 0\
**Last updated:** [May 11, 2026, 6:56pm UTC](https://discourse.cmake.org/t/feature-request-install-targets-runtime-dependencies-should-add-target-runtime-dll-dirs/15650 "2026-05-11T18:56:44Z")

</div>

Simply put, CMake already knows if dependencies are stored in another directory because of the networks of target dependencies. So when installing runtime dependencies with install(TARGETS … RUNTIME\_DEPENDENCIES) I can u…

---

## [FASTBuild+clang-cl combo emits warnings which Ninja+clang-cl combo doesn't emit with same everything](https://discourse.cmake.org/t/fastbuild-clang-cl-combo-emits-warnings-which-ninja-clang-cl-combo-doesnt-emit-with-same-everything/15601)

<div class="topic-metadata">

**Author:** [@SenPie](https://discourse.cmake.org/u/SenPie)\
**Replies:** 6\
**Last updated:** [April 25, 2026, 11:51pm UTC](https://discourse.cmake.org/t/fastbuild-clang-cl-combo-emits-warnings-which-ninja-clang-cl-combo-doesnt-emit-with-same-everything/15601 "2026-04-25T23:51:51Z")

</div>

With the long awaited addition of FASTBuild to the list of supported generators we wanted to transition our game engine from Ninja+clang-cl setup to FASTBuild+clang-cl setup to leverage that sweet distributed compilation…

---

## [Visual Studio Generator EXCLUDE\_FROM\_ALL behavior](https://discourse.cmake.org/t/visual-studio-generator-exclude-from-all-behavior/15620)

<div class="topic-metadata">

**Author:** [@dbs4261](https://discourse.cmake.org/u/dbs4261)\
**Replies:** 0\
**Last updated:** [April 23, 2026, 5:07pm UTC](https://discourse.cmake.org/t/visual-studio-generator-exclude-from-all-behavior/15620 "2026-04-23T17:07:32Z")

</div>

I am running into an issue with the VIsual Studio 17 2022 generator and I am not sure if this is the intended behavior. I have a project configured with CMake that uses FetchContent to fetch it’s dependencies. In my CLio…

---

## [FASTBuild generator refuses duplicated \`POST\_BUILD\` entry](https://discourse.cmake.org/t/fastbuild-generator-refuses-duplicated-post-build-entry/15403)

<div class="topic-metadata">

**Author:** [@objectx](https://discourse.cmake.org/u/objectx)\
**Replies:** 2\
**Last updated:** [April 16, 2026, 1:35pm UTC](https://discourse.cmake.org/t/fastbuild-generator-refuses-duplicated-post-build-entry/15403 "2026-04-16T13:35:24Z")

</div>

cmake -G FASTBuild refuses duplicated POST\_BUILD custom\_commands. I’ve created a simplified example here. It seems that the label creation algorithm for add\_custom\_command depends on its contents and the exact same con…

---

## [error: C++26 was enabled in precompiled file 'CMakeFiles/\_\_cmake\_cxx23.dir/std.pcm' but is currently disabled](https://discourse.cmake.org/t/error-c-26-was-enabled-in-precompiled-file-cmakefiles-cmake-cxx23-dir-std-pcm-but-is-currently-disabled/15467)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 7\
**Last updated:** [April 16, 2026, 9:03am UTC](https://discourse.cmake.org/t/error-c-26-was-enabled-in-precompiled-file-cmakefiles-cmake-cxx23-dir-std-pcm-but-is-currently-disabled/15467 "2026-04-16T09:03:14Z")

</div>

I see this strange error when I try to build with an installed CXX\_MODULES, The installed module was build with: # CMake requires the language standard to be specified as compile feature # when a target provides C++23 …

---

## [Incorrect link library flags in mixed C++/ASM project using MSVC with Clang](https://discourse.cmake.org/t/incorrect-link-library-flags-in-mixed-c-asm-project-using-msvc-with-clang/15600)

<div class="topic-metadata">

**Author:** [@MEhrn00](https://discourse.cmake.org/u/MEhrn00)\
**Replies:** 2\
**Last updated:** [April 14, 2026, 5:32pm UTC](https://discourse.cmake.org/t/incorrect-link-library-flags-in-mixed-c-asm-project-using-msvc-with-clang/15600 "2026-04-14T17:32:53Z")

</div>

I am experiencing an issue in a mixed C++/ASM project on Windows using MSVC as the C++ compiler and Clang for the assembler. When configuring a project for Ninja passing -DCMAKE\_ASM\_COMPILER=clang, bare link library nam…

---

## [Proposed contribution: CPack NSIS: Option to hide "Components" page even when components in use](https://discourse.cmake.org/t/proposed-contribution-cpack-nsis-option-to-hide-components-page-even-when-components-in-use/15599)

<div class="topic-metadata">

**Author:** [@chrism](https://discourse.cmake.org/u/chrism)\
**Replies:** 1\
**Last updated:** [April 10, 2026, 1:35pm UTC](https://discourse.cmake.org/t/proposed-contribution-cpack-nsis-option-to-hide-components-page-even-when-components-in-use/15599 "2026-04-10T13:35:24Z")

</div>

I have the following situation and am proposing to submit a pull request with a solution, but thought I’d post it here for discussion, in case anyone has any comments, since I’ve not contributed to cmake before. The sit…

---

## [Find\_package - MSVC - Standard Architecture not defined.](https://discourse.cmake.org/t/find-package-msvc-standard-architecture-not-defined/15581)

<div class="topic-metadata">

**Author:** [@Kphillisjr](https://discourse.cmake.org/u/Kphillisjr)\
**Replies:** 1\
**Last updated:** [March 30, 2026, 8:09pm UTC](https://discourse.cmake.org/t/find-package-msvc-standard-architecture-not-defined/15581 "2026-03-30T20:09:39Z")

</div>

I am working with a few packages and noticed that the CMAKE find\_package is fundamentally broken with MSVC. From what I can tell the following variables are not defined: CMAKE\_LIBRARY\_ARCHITECTURE CMAKE\_C\_LIBRARY\_ARCHI…

---

## [install(TARGETS ... CXX\_MODULES\_BMI ...) does not always install a file?](https://discourse.cmake.org/t/install-targets-cxx-modules-bmi-does-not-always-install-a-file/15574)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 5\
**Last updated:** [March 26, 2026, 10:24am UTC](https://discourse.cmake.org/t/install-targets-cxx-modules-bmi-does-not-always-install-a-file/15574 "2026-03-26T10:24:27Z")

</div>

I struggle over the CXX\_MODULES install BMI. Sometimes this has no effect or some BMI files are missing? see to Why are the build and installed BMI files not used? I use always this cmake install function call: …

---

## [Compiling 3.10.X for Solaris 8](https://discourse.cmake.org/t/compiling-3-10-x-for-solaris-8/15569)

<div class="topic-metadata">

**Author:** [@Jeffrey\_Bromberger](https://discourse.cmake.org/u/Jeffrey_Bromberger)\
**Replies:** 1\
**Last updated:** [March 23, 2026, 12:08pm UTC](https://discourse.cmake.org/t/compiling-3-10-x-for-solaris-8/15569 "2026-03-23T12:08:00Z")

</div>

OK. I’m into doing wild and crazy things. I want to get CMake running on my main Solaris 8 development environment: a) Solaris 8 (last release and thoroughly patched to the eyeballs) b) GCC 4.7.4 c) Binutils 2.24 E…

---

## [Feature Request: Allow prefix on property name defined with define\_property](https://discourse.cmake.org/t/feature-request-allow-prefix-on-property-name-defined-with-define-property/15570)

<div class="topic-metadata">

**Author:** [@joshr](https://discourse.cmake.org/u/joshr)\
**Replies:** 0\
**Last updated:** [March 22, 2026, 5:44pm UTC](https://discourse.cmake.org/t/feature-request-allow-prefix-on-property-name-defined-with-define-property/15570 "2026-03-22T17:44:25Z")

</div>

Hello, I was recently playing with define\_property and ran into a situation where I received the error: CMake Error (define\_property): Debug define\_property Variable name “COMPANY\_CACHE\_VAR” does not end with property …

---

## [Import std with Ninja Multi-Config generator does not work in Release?](https://discourse.cmake.org/t/import-std-with-ninja-multi-config-generator-does-not-work-in-release/15561)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 6\
**Last updated:** [March 18, 2026, 8:39pm UTC](https://discourse.cmake.org/t/import-std-with-ninja-multi-config-generator-does-not-work-in-release/15561 "2026-03-18T20:39:55Z")

</div>

~/.local/bin/cmake --version cmake version 4.2.3 The project is Transition to CXX\_MOUDLES for asio root@b40851a7588d:/home/builder/workdir/build/linux-gcc/src/tests/unit/find-package-test# ~/.local/bin/cmake --build .…

---

## [Specifying allowed configuration types](https://discourse.cmake.org/t/specifying-allowed-configuration-types/12677)

<div class="topic-metadata">

**Author:** [@purpleKarrot](https://discourse.cmake.org/u/purpleKarrot)\
**Replies:** 7\
**Last updated:** [March 18, 2026, 11:15am UTC](https://discourse.cmake.org/t/specifying-allowed-configuration-types/12677 "2026-03-18T11:15:25Z")

</div>

Specifying the allowed configuration types is tricky. People are confused by the variables CMAKE\_CONFIGURATION\_TYPES and CMAKE\_BUILD\_TYPE. Many don’t know about the usefulness of the STRINGS cache property. One approach…

---

## [cmake --install . --component ? : how get the list of valid component to install?](https://discourse.cmake.org/t/cmake-install-component-how-get-the-list-of-valid-component-to-install/15510)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 6\
**Last updated:** [March 18, 2026, 7:42am UTC](https://discourse.cmake.org/t/cmake-install-component-how-get-the-list-of-valid-component-to-install/15510 "2026-03-18T07:42:22Z")

</div>

cmdoption-cmake-install-component does not help to get list of possible components to install bash-5.3$ cmake --install . --component CMake Error: Invalid value used with --component Usage: cmake --install \<dir\> \[option…

---

## [Bash autocompletion of CMake targets](https://discourse.cmake.org/t/bash-autocompletion-of-cmake-targets/9879)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 35\
**Last updated:** [March 15, 2026, 12:01pm UTC](https://discourse.cmake.org/t/bash-autocompletion-of-cmake-targets/9879 "2026-03-15T12:01:57Z")

</div>

I have requests from one of my consulting clients to add support for auto-completing target names when typing commands like cmake --build . --target \<TAB\>. I’ve often wanted something similar myself. I’ve been thinking a…

---

## ['codegen' target when generating only headers](https://discourse.cmake.org/t/codegen-target-when-generating-only-headers/15537)

<div class="topic-metadata">

**Author:** [@Lieven](https://discourse.cmake.org/u/Lieven)\
**Replies:** 10\
**Last updated:** [March 10, 2026, 8:58pm UTC](https://discourse.cmake.org/t/codegen-target-when-generating-only-headers/15537 "2026-03-10T20:58:08Z")

</div>

I wonder if the following behavior is a bug or was intended. When a custom target/command pattern is used to generate code (say some cpp files (with or without some header files)), the new codegen feature works correctly…

---

## [Experimental \`import std\` support not enabled when detecting toolchain clang-22.1?](https://discourse.cmake.org/t/experimental-import-std-support-not-enabled-when-detecting-toolchain-clang-22-1/15534)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 1\
**Last updated:** [March 1, 2026, 1:00pm UTC](https://discourse.cmake.org/t/experimental-import-std-support-not-enabled-when-detecting-toolchain-clang-22-1/15534 "2026-03-01T13:00:41Z")

</div>

bash-5.3$ ~/.local/bin/cmake --workflow llvm-release --fresh Executing workflow step 1 of 3: configure preset "llvm-release" -- CXXFLAGS=-stdlib=libc++ 'brew' '--prefix' 'llvm' -- LLVM\_DIR=/usr/local/Cellar/llvm/22.1.0 …

[Previous page](https://discourse.cmake.org/c/development/9.md)

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