# Development

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

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

**Page:** 7

---

## [CMake 4.0.0-rc1 test failure](https://discourse.cmake.org/t/cmake-4-0-0-rc1-test-failure/13608)

<div class="topic-metadata">

**Author:** [@dextercd](https://discourse.cmake.org/u/dextercd)\
**Replies:** 3\
**Last updated:** [February 20, 2025, 11:53pm UTC](https://discourse.cmake.org/t/cmake-4-0-0-rc1-test-failure/13608 "2025-02-20T23:53:29Z")

</div>

Hey there, I compiled the latest release candidate from source and ran ctest. All tests succeeded except for one: ▶ CTest output The errors says that two strings didn’t match. Here’s what the diff looks like after putti…

---

## [add\_dependencies called with incorrect number of arguments](https://discourse.cmake.org/t/add-dependencies-called-with-incorrect-number-of-arguments/13611)

<div class="topic-metadata">

**Author:** [@nmnobre](https://discourse.cmake.org/u/nmnobre)\
**Replies:** 3\
**Last updated:** [February 20, 2025, 1:53pm UTC](https://discourse.cmake.org/t/add-dependencies-called-with-incorrect-number-of-arguments/13611 "2025-02-20T13:53:09Z")

</div>

The documentation for add\_dependencies seems to suggest add\_dependencies(my\_amazing\_target) is valid syntax, yet CMake complains it’s missing arguments?

---

## [add\_custom\_command parallel race condition with just one cp -p custom command. Is this an internal parallel race bug for at least all versions from 3.18.4 to 3.31.5?](https://discourse.cmake.org/t/add-custom-command-parallel-race-condition-with-just-one-cp-p-custom-command-is-this-an-internal-parallel-race-bug-for-at-least-all-versions-from-3-18-4-to-3-31-5/13596)

<div class="topic-metadata">

**Author:** [@airwin](https://discourse.cmake.org/u/airwin)\
**Replies:** 3\
**Last updated:** [February 19, 2025, 4:31am UTC](https://discourse.cmake.org/t/add-custom-command-parallel-race-condition-with-just-one-cp-p-custom-command-is-this-an-internal-parallel-race-bug-for-at-least-all-versions-from-3-18-4-to-3-31-5/13596 "2025-02-19T04:31:38Z")

</div>

To illustrate this parallel build bug for add\_custom\_command with just one cp -p command, here is my test CMakeLists.txt file. CMAKE\_MINIMUM\_REQUIRED(VERSION 3.18.4 FATAL\_ERROR) project(test\_cp NONE) set(name\_list …

---

## [CMake bootstrap fails under Windows with error: 'KWSYS\_ENCODING\_DEFAULT\_CODEPAGE' was not declared in this scope](https://discourse.cmake.org/t/cmake-bootstrap-fails-under-windows-with-error-kwsys-encoding-default-codepage-was-not-declared-in-this-scope/13586)

<div class="topic-metadata">

**Author:** [@Benjamin](https://discourse.cmake.org/u/Benjamin)\
**Replies:** 2\
**Last updated:** [February 18, 2025, 5:03pm UTC](https://discourse.cmake.org/t/cmake-bootstrap-fails-under-windows-with-error-kwsys-encoding-default-codepage-was-not-declared-in-this-scope/13586 "2025-02-18T17:03:43Z")

</div>

Hey there, I am trying to build CMake master branch from scratch as described here: https://gitlab.kitware.com/cmake/cmake/-/blob/master/README.rst#building-cmake I am on Windows 10 and try to build with MSYS2 & MinGW…

---

## [Exceptions to the default target](https://discourse.cmake.org/t/exceptions-to-the-default-target/13599)

<div class="topic-metadata">

**Author:** [@nmnobre](https://discourse.cmake.org/u/nmnobre)\
**Replies:** 1\
**Last updated:** [February 18, 2025, 5:01pm UTC](https://discourse.cmake.org/t/exceptions-to-the-default-target/13599 "2025-02-18T17:01:02Z")

</div>

The docs describe the built-in all target as: “The default target used by Makefile and Ninja generators. Builds all targets in the buildsystem, except those which are excluded by their EXCLUDE\_FROM\_ALL target property o…

---

## [hip::host not working for NVIDIA platforms](https://discourse.cmake.org/t/hip-host-not-working-for-nvidia-platforms/13577)

<div class="topic-metadata">

**Author:** [@wme7](https://discourse.cmake.org/u/wme7)\
**Replies:** 3\
**Last updated:** [February 16, 2025, 6:21pm UTC](https://discourse.cmake.org/t/hip-host-not-working-for-nvidia-platforms/13577 "2025-02-16T18:21:50Z")

</div>

Just started to work in porting a kaiju CUDA/C++17 project. To do this, I’m using a strong workstation with several Nvidia GPUs. Moreover, I’m using HIP 6.2.6 on top of a cudaToolKit 12.6, and to play safe with AMD, I’m …

---

## [cmake ctest bash completion issue](https://discourse.cmake.org/t/cmake-ctest-bash-completion-issue/13573)

<div class="topic-metadata">

**Author:** [@pjaol](https://discourse.cmake.org/u/pjaol)\
**Replies:** 0\
**Last updated:** [February 13, 2025, 5:02pm UTC](https://discourse.cmake.org/t/cmake-ctest-bash-completion-issue/13573 "2025-02-13T17:02:38Z")

</div>

Howdy Ran into an issue with the bash autocompletion file for ctest on bash version BASH\_VERSION 3.2.57(1)-release Which comes with Sonoma Gromgit from the homebrew folks has a fix for it Could I get someone to tak…

---

## [GETTEXT\_PROCESS\_PO\_FILES usage with INSTALL\_DESTINATION option](https://discourse.cmake.org/t/gettext-process-po-files-usage-with-install-destination-option/13560)

<div class="topic-metadata">

**Author:** [@Yegor\_Yefremov](https://discourse.cmake.org/u/Yegor_Yefremov)\
**Replies:** 1\
**Last updated:** [February 10, 2025, 11:02am UTC](https://discourse.cmake.org/t/gettext-process-po-files-usage-with-install-destination-option/13560 "2025-02-10T11:02:28Z")

</div>

As far as I understand the CMake code (Modules/FindGettext.cmake), if the INSTALL\_DESTINATION option is given a file named fr.po will be installed to fr/LC\_MESSAGES/fr.mo. But it should be named textdomain.mo where textd…

---

## [Feature request: inheriting workflows](https://discourse.cmake.org/t/feature-request-inheriting-workflows/13540)

<div class="topic-metadata">

**Author:** [@leha-bot](https://discourse.cmake.org/u/leha-bot)\
**Replies:** 3\
**Last updated:** [February 6, 2025, 8:16am UTC](https://discourse.cmake.org/t/feature-request-inheriting-workflows/13540 "2025-02-06T08:16:50Z")

</div>

Right now CMake workflows doesn’t have ability to inherit the another workflow. It forces to copy-paste a lot of code in some scenarios when the workflows use slightly different configure steps. Consider this part from…

---

## [Feature Request / Feedback for Presets](https://discourse.cmake.org/t/feature-request-feedback-for-presets/13478)

<div class="topic-metadata">

**Author:** [@ralian](https://discourse.cmake.org/u/ralian)\
**Replies:** 1\
**Last updated:** [January 24, 2025, 11:47pm UTC](https://discourse.cmake.org/t/feature-request-feedback-for-presets/13478 "2025-01-24T23:47:09Z")

</div>

Hello, I am new to development for CMake and have a few ideas I want to suggest around Presets. I have provided all three things below, but I can break these out into separate posts if the powers that be decide that is c…

---

## [Using CMake to build Visual Studio-based C++ projects(and MSVC toolchain) for ARM64EC fails with linker error](https://discourse.cmake.org/t/using-cmake-to-build-visual-studio-based-c-projects-and-msvc-toolchain-for-arm64ec-fails-with-linker-error/13413)

<div class="topic-metadata">

**Author:** [@numbers1123](https://discourse.cmake.org/u/numbers1123)\
**Replies:** 4\
**Last updated:** [January 16, 2025, 8:26pm UTC](https://discourse.cmake.org/t/using-cmake-to-build-visual-studio-based-c-projects-and-msvc-toolchain-for-arm64ec-fails-with-linker-error/13413 "2025-01-16T20:26:14Z")

</div>

Hello all, I believe the following commit has regressed the building of C++ binaries using Visual Studio and the MSVC toolchain for ARM64EC specifically. We receive a linker error that relates to the additional vftable…

---

## [Is there a way to disable the INSTALL target in Visual Studio while still generating the cmake\_install.cmake for CPack? (Feature request?)](https://discourse.cmake.org/t/is-there-a-way-to-disable-the-install-target-in-visual-studio-while-still-generating-the-cmake-install-cmake-for-cpack-feature-request/13383)

<div class="topic-metadata">

**Author:** [@sasha2048](https://discourse.cmake.org/u/sasha2048)\
**Replies:** 0\
**Last updated:** [January 13, 2025, 9:05am UTC](https://discourse.cmake.org/t/is-there-a-way-to-disable-the-install-target-in-visual-studio-while-still-generating-the-cmake-install-cmake-for-cpack-feature-request/13383 "2025-01-13T09:05:42Z")

</div>

Hello. I think it’s a relatively popular case on Windows when the install(…) command in a project is used only in conjunction with CPack – to create an installer. In such cases the INSTALL predefined target by itself is…

---

## [how to config cmake file correctly for header file change detection (Tasking C compiler + Ninja)](https://discourse.cmake.org/t/how-to-config-cmake-file-correctly-for-header-file-change-detection-tasking-c-compiler-ninja/13372)

<div class="topic-metadata">

**Author:** [@Siwei\_Xia](https://discourse.cmake.org/u/Siwei_Xia)\
**Replies:** 3\
**Last updated:** [January 11, 2025, 10:33pm UTC](https://discourse.cmake.org/t/how-to-config-cmake-file-correctly-for-header-file-change-detection-tasking-c-compiler-ninja/13372 "2025-01-11T22:33:10Z")

</div>

I am using cmake + ninja + Tasking C compiler to build an Infineon Aurix TC3xx project for instance: add\_executable(“${sw\_product}” ${project\_source}) the “project\_source” contain all the necessary .c files for the pr…

---

## [How does find-openssl work?](https://discourse.cmake.org/t/how-does-find-openssl-work/13142)

<div class="topic-metadata">

**Author:** [@rsalz](https://discourse.cmake.org/u/rsalz)\
**Replies:** 4\
**Last updated:** [January 9, 2025, 6:02pm UTC](https://discourse.cmake.org/t/how-does-find-openssl-work/13142 "2025-01-09T18:02:56Z")

</div>

I am working on a fork of OpenSSL, called QuicTLS. One of the things we are doing is switch from the customer Perl to a cmake build. A test is failing and I’m trying to figure out what I broke. The test is bringing in …

---

## [FindCUDA: CUDA\_HOST\_COMPILER has an invalid default value?](https://discourse.cmake.org/t/findcuda-cuda-host-compiler-has-an-invalid-default-value/13326)

<div class="topic-metadata">

**Author:** [@hjjvandam](https://discourse.cmake.org/u/hjjvandam)\
**Replies:** 1\
**Last updated:** [January 5, 2025, 9:19pm UTC](https://discourse.cmake.org/t/findcuda-cuda-host-compiler-has-an-invalid-default-value/13326 "2025-01-05T21:19:26Z")

</div>

I am having build problems with LAMMPS that go back FindCUDA.cmake. FindCUDA.cmake selects CMAKE\_C\_COMPILER as the default value for the CUDA\_HOST\_COMPILER setting. As CUDA is a version of C++ (see https://docs.nvidia.co…

---

## [error: module file CMakeFiles/\_\_cmake\_cxx23.dir/std.pcm cannot be loaded due to a configuration mismatch with the current compilation](https://discourse.cmake.org/t/error-module-file-cmakefiles-cmake-cxx23-dir-std-pcm-cannot-be-loaded-due-to-a-configuration-mismatch-with-the-current-compilation/13276)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 6\
**Last updated:** [January 3, 2025, 8:50am UTC](https://discourse.cmake.org/t/error-module-file-cmakefiles-cmake-cxx23-dir-std-pcm-cannot-be-loaded-due-to-a-configuration-mismatch-with-the-current-compilation/13276 "2025-01-03T08:50:21Z")

</div>

I am trying to use an exported CXX\_MODULE builded and tested according https://www.kitware.com/import-std-in-cmake-3-30/ \[9/10\] Install the project... -- Install configuration: "Debug" -- Installing: /Users/clausklein/W…

---

## [cmake 3.31.3 and failing Stub-fail test on linux musl](https://discourse.cmake.org/t/cmake-3-31-3-and-failing-stub-fail-test-on-linux-musl/13292)

<div class="topic-metadata">

**Author:** [@bvdeenen](https://discourse.cmake.org/u/bvdeenen)\
**Replies:** 2\
**Last updated:** [December 31, 2024, 10:27am UTC](https://discourse.cmake.org/t/cmake-3-31-3-and-failing-stub-fail-test-on-linux-musl/13292 "2024-12-31T10:27:37Z")

</div>

Hi all I’m using Void Linux, which also supports the musl C library. I just updated the cmake version in the void package definition to 3.31.3. All the glibc tests work fine on glibc and arm, but musl x86 triggers one t…

---

## [Issues with C++ Modules and Partitions: "Module partition 'vector3d' for module unit 'app.geometry' was not found"](https://discourse.cmake.org/t/issues-with-c-modules-and-partitions-module-partition-vector3d-for-module-unit-app-geometry-was-not-found/13252)

<div class="topic-metadata">

**Author:** [@BrunnerMichael](https://discourse.cmake.org/u/BrunnerMichael)\
**Replies:** 4\
**Last updated:** [December 24, 2024, 7:34am UTC](https://discourse.cmake.org/t/issues-with-c-modules-and-partitions-module-partition-vector3d-for-module-unit-app-geometry-was-not-found/13252 "2024-12-24T07:34:55Z")

</div>

Hi everyone, I’m encountering a persistent issue while working with C++ modules and partitions in a CMake-based project. The errors appear during the build process using MSVC and Visual Studio generators. Here are the r…

---

## [CMake busybox?](https://discourse.cmake.org/t/cmake-busybox/13229)

<div class="topic-metadata">

**Author:** [@paperchalice](https://discourse.cmake.org/u/paperchalice)\
**Replies:** 2\
**Last updated:** [December 21, 2024, 4:10am UTC](https://discourse.cmake.org/t/cmake-busybox/13229 "2024-12-21T04:10:45Z")

</div>

Inspired by \[RFC\] LLVM Busybox Proposal - LLVM Dev List Archives - LLVM Discussion Forums TLDR: Merge all utilities into single executable and dispatch them by argv\[0\] dynamically. I saw in CMake build script cmake, ct…

---

## [Is the Greenhills Multi Generator Still Under Active Development?](https://discourse.cmake.org/t/is-the-greenhills-multi-generator-still-under-active-development/13202)

<div class="topic-metadata">

**Author:** [@Tim\_Finnegan](https://discourse.cmake.org/u/Tim_Finnegan)\
**Replies:** 3\
**Last updated:** [December 16, 2024, 7:43pm UTC](https://discourse.cmake.org/t/is-the-greenhills-multi-generator-still-under-active-development/13202 "2024-12-16T19:43:03Z")

</div>

Good Afternoon and Happy Holidays, All! The Greenhills Multi generator for CMake has been marked experimental for some time. Currenty, the web page in the documentation for it (https://cmake.org/cmake/help/latest/genera…

---

## [Allow export of IMPORTED libraries?](https://discourse.cmake.org/t/allow-export-of-imported-libraries/13088)

<div class="topic-metadata">

**Author:** [@johe](https://discourse.cmake.org/u/johe)\
**Replies:** 4\
**Last updated:** [December 10, 2024, 4:51pm UTC](https://discourse.cmake.org/t/allow-export-of-imported-libraries/13088 "2024-12-10T16:51:18Z")

</div>

I want to export targets of a prebuild library. I.e. I only have .dll and .lib files and want to create a target from them and make it available via a find\_package() call. From what I understand the CMakeLists.txt shoul…

---

## [CMAKE\_SKIP\_TEST\_ALL\_DEPENDENCY has the wrong default](https://discourse.cmake.org/t/cmake-skip-test-all-dependency-has-the-wrong-default/13144)

<div class="topic-metadata">

**Author:** [@camio](https://discourse.cmake.org/u/camio)\
**Replies:** 10\
**Last updated:** [December 9, 2024, 6:46pm UTC](https://discourse.cmake.org/t/cmake-skip-test-all-dependency-has-the-wrong-default/13144 "2024-12-09T18:46:28Z")

</div>

By default CMake’s test target doesn’t depend on all which leaves many users scratching their heads when ‘make test’ fails because the project isn’t built yet. We can use set(CMAKE\_SKIP\_TEST\_ALL\_DEPENDENCY FALSE) to fix…

---

## [cmake error for ti cgt \>8](https://discourse.cmake.org/t/cmake-error-for-ti-cgt-8/8120)

<div class="topic-metadata">

**Author:** [@Freed-Wu](https://discourse.cmake.org/u/Freed-Wu)\
**Replies:** 1\
**Last updated:** [December 9, 2024, 11:58am UTC](https://discourse.cmake.org/t/cmake-error-for-ti-cgt-8/8120 "2024-12-09T11:58:12Z")

</div>

Reproduce Procedures cmake/ti.cmake: set(CMAKE\_SYSTEM\_NAME Generic) if(NOT DEFINED TOOLCHAIN\_SUFFIX) set(TOOLCHAIN\_SUFFIX 6x) endif() set(CMAKE\_C\_COMPILER cl${TOOLCHAIN\_SUFFIX}) set(CMAKE\_CXX\_COMPILER cl${TOOLCHAIN\_SU…

---

## [ccache namespace and compiler check issue](https://discourse.cmake.org/t/ccache-namespace-and-compiler-check-issue/13149)

<div class="topic-metadata">

**Author:** [@micsthepick](https://discourse.cmake.org/u/micsthepick)\
**Replies:** 5\
**Last updated:** [December 8, 2024, 10:12pm UTC](https://discourse.cmake.org/t/ccache-namespace-and-compiler-check-issue/13149 "2024-12-08T22:12:12Z")

</div>

ccache caches even the objects generated from the compiler check in CMAKE. I am using namespaces in ccache (CCACHE\_NAMESPACE=whatever), to build with 3 different environment based configs, but there are linking errors on…

---

## [Future YAML support for CMake presets?](https://discourse.cmake.org/t/future-yaml-support-for-cmake-presets/7188)

<div class="topic-metadata">

**Author:** [@PMath](https://discourse.cmake.org/u/PMath)\
**Replies:** 10\
**Last updated:** [December 4, 2024, 4:22pm UTC](https://discourse.cmake.org/t/future-yaml-support-for-cmake-presets/7188 "2024-12-04T16:22:53Z")

</div>

Is there possibly any scope for adding YAML support for CMake presets? (Using e.g. https://github.com/jbeder/yaml-cpp.) The reason I ask is: it can make presets files cleaner as you don’t always require enclosing brace…

---

## [CMAKE\_HIP\_COMPILER\_ROCM\_ROOT is not set correctly](https://discourse.cmake.org/t/cmake-hip-compiler-rocm-root-is-not-set-correctly/13102)

<div class="topic-metadata">

**Author:** [@cmyster](https://discourse.cmake.org/u/cmyster)\
**Replies:** 2\
**Last updated:** [December 2, 2024, 3:04pm UTC](https://discourse.cmake.org/t/cmake-hip-compiler-rocm-root-is-not-set-correctly/13102 "2024-12-02T15:04:54Z")

</div>

Hi, I’m trying to build composable-kernel-6.2.4 and I’ve got cmake 3.31.0 installed. It is looking into CMakeDetermineHIPCompiler.cmake and trying to get a parameter called CMAKE\_HIP\_COMPILER\_ROCM\_ROOT from it but fails…

---

## [Regression: CMake 3.22+ fails to find MPI on Cray systems (reproducible on Frontier supercomputer)](https://discourse.cmake.org/t/regression-cmake-3-22-fails-to-find-mpi-on-cray-systems-reproducible-on-frontier-supercomputer/13045)

<div class="topic-metadata">

**Author:** [@Wu\_Danqing](https://discourse.cmake.org/u/Wu_Danqing)\
**Replies:** 3\
**Last updated:** [November 26, 2024, 5:05pm UTC](https://discourse.cmake.org/t/regression-cmake-3-22-fails-to-find-mpi-on-cray-systems-reproducible-on-frontier-supercomputer/13045 "2024-11-26T17:05:00Z")

</div>

Hi, We have encountered a regression in CMake starting with version 3.22 that affects MPI detection on Cray systems, specifically on Frontier (a HPE Cray EX supercomputer at OLCF). This issue is not present in earlier v…

---

## [CMake not passing -arch command during macOS cross-compile](https://discourse.cmake.org/t/cmake-not-passing-arch-command-during-macos-cross-compile/12999)

<div class="topic-metadata">

**Author:** [@palmerc](https://discourse.cmake.org/u/palmerc)\
**Replies:** 1\
**Last updated:** [November 20, 2024, 11:34am UTC](https://discourse.cmake.org/t/cmake-not-passing-arch-command-during-macos-cross-compile/12999 "2024-11-20T11:34:44Z")

</div>

I have been cross-compiling LLVM on a macOS (studio) arm machine for x86\_64 and arm64 separately, because you need to specify a ‘default’ target triple for the given platform. There is a variable called LLVM\_HOST\_TRIPLE …

---

## [\[BUG\] CMake uses extra hidden flags](https://discourse.cmake.org/t/bug-cmake-uses-extra-hidden-flags/12983)

<div class="topic-metadata">

**Author:** [@Paradox84](https://discourse.cmake.org/u/Paradox84)\
**Replies:** 6\
**Last updated:** [November 18, 2024, 2:18pm UTC](https://discourse.cmake.org/t/bug-cmake-uses-extra-hidden-flags/12983 "2024-11-18T14:18:55Z")

</div>

In Debug configuration CMake uses \\Zi flag, but when you try to create a custom configuration which is just a clone of Debug, that config won’t have \\Zi flag In my opinion this is a bug and CMake only should use flags w…

---

## [Ability to clean individual targets?](https://discourse.cmake.org/t/ability-to-clean-individual-targets/2980)

<div class="topic-metadata">

**Author:** [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)\
**Replies:** 19\
**Last updated:** [November 15, 2024, 12:27am UTC](https://discourse.cmake.org/t/ability-to-clean-individual-targets/2980 "2024-11-15T00:27:10Z")

</div>

Currently I don’t believe you can clean individual targets correct? I know in Visual Studio you can clean individual targets. And I believe other generators support a similar ability to clean individual targets but I mi…

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

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