# Development

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

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

**Page:** 4

---

## [CXX-Modules: import std does still not work on OSX with g++-15](https://discourse.cmake.org/t/cxx-modules-import-std-does-still-not-work-on-osx-with-g-15/15265)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 5\
**Last updated:** [October 27, 2025, 2:09pm UTC](https://discourse.cmake.org/t/cxx-modules-import-std-does-still-not-work-on-osx-with-g-15/15265 "2025-10-27T14:09:58Z")

</div>

I have this simple example copied form https://www.kitware.com/import-std-in-cmake-3-30/: # CMake 3.30 is required for C++23 \`import std\` support; we use 3.29.20240416 # here so that in-development versions satisfy it. …

---

## [feature request: list all (namespaced / imported / aliased) targets added by FetchContent](https://discourse.cmake.org/t/feature-request-list-all-namespaced-imported-aliased-targets-added-by-fetchcontent/13863)

<div class="topic-metadata">

**Author:** [@avagordon01](https://discourse.cmake.org/u/avagordon01)\
**Replies:** 3\
**Last updated:** [October 25, 2025, 3:41am UTC](https://discourse.cmake.org/t/feature-request-list-all-namespaced-imported-aliased-targets-added-by-fetchcontent/13863 "2025-10-25T03:41:55Z")

</div>

problem: when adding a new library (with FetchContent\_Declare & MakeAvailable) I have no idea what targets are available. I can google / stackoverflow and hope someone has documented, but it’s not a good experience. I c…

---

## [Feature Request: Ability to set environment variables at build time](https://discourse.cmake.org/t/feature-request-ability-to-set-environment-variables-at-build-time/2159)

<div class="topic-metadata">

**Author:** [@Matt\_Rogers](https://discourse.cmake.org/u/Matt_Rogers)\
**Replies:** 6\
**Last updated:** [October 21, 2025, 10:58am UTC](https://discourse.cmake.org/t/feature-request-ability-to-set-environment-variables-at-build-time/2159 "2025-10-21T10:58:13Z")

</div>

At my day job, I maintain a few custom toolchain files for cross-compiling. One of the problems I ran into when trying to add another one, is that the compiler requires several variables to be set. I’ve struggled to fi…

---

## [Enforce arbitrary CudaToolkit version during enable\_language()?](https://discourse.cmake.org/t/enforce-arbitrary-cudatoolkit-version-during-enable-language/15256)

<div class="topic-metadata">

**Author:** [@johe](https://discourse.cmake.org/u/johe)\
**Replies:** 0\
**Last updated:** [October 20, 2025, 1:59pm UTC](https://discourse.cmake.org/t/enforce-arbitrary-cudatoolkit-version-during-enable-language/15256 "2025-10-20T13:59:57Z")

</div>

Say I have multiple versions of CUDA installed at e.g. C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.8 C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.9 and both versions are on the PATH. Can I somehow…

---

## [VS: Build Arm64X PE binary? (Windows 11 on Arm)](https://discourse.cmake.org/t/vs-build-arm64x-pe-binary-windows-11-on-arm/14447)

<div class="topic-metadata">

**Author:** [@kenjiuno](https://discourse.cmake.org/u/kenjiuno)\
**Replies:** 4\
**Last updated:** [October 10, 2025, 2:48pm UTC](https://discourse.cmake.org/t/vs-build-arm64x-pe-binary-windows-11-on-arm/14447 "2025-10-10T14:48:40Z")

</div>

Is there a plan to support the build of Arm64X PE binaries with the Visual Studio 17 2022 generator? For example, the ODBC driver is better with an Arm64X PE binary. MariaDB Connector/ODBC is a CMake-enabled project. T…

---

## [\`-E env\` doesn't export empty environment variables on Windows](https://discourse.cmake.org/t/e-env-doesnt-export-empty-environment-variables-on-windows/15167)

<div class="topic-metadata">

**Author:** [@devjoa](https://discourse.cmake.org/u/devjoa)\
**Replies:** 15\
**Last updated:** [October 6, 2025, 3:39pm UTC](https://discourse.cmake.org/t/e-env-doesnt-export-empty-environment-variables-on-windows/15167 "2025-10-06T15:39:32Z")

</div>

Hi, Running cmake -E env NAME="" \<program\> gives different behavior when running on Linux vs Windows. On Linux (what I’m used too) the environment variables is defined and contains an empty string, but on Windows the e…

---

## [cmake -E env Error Messages](https://discourse.cmake.org/t/cmake-e-env-error-messages/15212)

<div class="topic-metadata">

**Author:** [@AlbertM](https://discourse.cmake.org/u/AlbertM)\
**Replies:** 0\
**Last updated:** [October 2, 2025, 1:13pm UTC](https://discourse.cmake.org/t/cmake-e-env-error-messages/15212 "2025-10-02T13:13:15Z")

</div>

Hi, Can the error message for cmake -E env include more info if it fails? I was following directions for building something and I saw the following messages: 78\> Swig compile gdcm.i for csharp 78\> no such file or …

---

## [Unified Fetched Content with FETCHCONTENT\_BASE\_DIR](https://discourse.cmake.org/t/unified-fetched-content-with-fetchcontent-base-dir/10321)

<div class="topic-metadata">

**Author:** [@anthonya](https://discourse.cmake.org/u/anthonya)\
**Replies:** 6\
**Last updated:** [September 30, 2025, 8:44pm UTC](https://discourse.cmake.org/t/unified-fetched-content-with-fetchcontent-base-dir/10321 "2025-09-30T20:44:35Z")

</div>

Over in discussion FetchContent base directory and CMakePresets, @craig.scott said the following: I wanted to revisit this discussion. Is it possible to make this idea something that FetchContent does support well? F…

---

## [Automatic CMakeList.txt files and configuration file construction tool](https://discourse.cmake.org/t/automatic-cmakelist-txt-files-and-configuration-file-construction-tool/15187)

<div class="topic-metadata">

**Author:** [@Erkam](https://discourse.cmake.org/u/Erkam)\
**Replies:** 0\
**Last updated:** [September 22, 2025, 12:03pm UTC](https://discourse.cmake.org/t/automatic-cmakelist-txt-files-and-configuration-file-construction-tool/15187 "2025-09-22T12:03:38Z")

</div>

Dear CMAKE developers. I have developed a new innovative platform producing CMakeList.txt files and CMake configuration files automatically without requiring any code. However, I can not reach the developers who gives …

---

## [CTest: build dependency as test fixture](https://discourse.cmake.org/t/ctest-build-dependency-as-test-fixture/15169)

<div class="topic-metadata">

**Author:** [@purpleKarrot](https://discourse.cmake.org/u/purpleKarrot)\
**Replies:** 2\
**Last updated:** [September 18, 2025, 8:04am UTC](https://discourse.cmake.org/t/ctest-build-dependency-as-test-fixture/15169 "2025-09-18T08:04:04Z")

</div>

The following code defines a test executable and two tests: add\_executable(foo\_test ...) add\_test(NAME foo.test.1 COMMAND foo\_test -1) add\_test(NAME foo.test.2 COMMAND foo\_test -2) With CMAKE\_SKIP\_TEST\_ALL\_DEPENDENCY s…

---

## [Avoid GuessLibrarySOName on Windows](https://discourse.cmake.org/t/avoid-guesslibrarysoname-on-windows/15158)

<div class="topic-metadata">

**Author:** [@stebjo](https://discourse.cmake.org/u/stebjo)\
**Replies:** 8\
**Last updated:** [September 11, 2025, 1:36pm UTC](https://discourse.cmake.org/t/avoid-guesslibrarysoname-on-windows/15158 "2025-09-11T13:36:40Z")

</div>

Hi, We’re adding external libraries using full paths in target\_link\_libraries. On Windows, this points to a .lib file. During link information processing, .lib files are treated as shared libraries, which triggers a cal…

---

## [PkgConfig: cflags must be usage requirements for \`IMPORTED\_TARGET\`s](https://discourse.cmake.org/t/pkgconfig-cflags-must-be-usage-requirements-for-imported-target-s/15152)

<div class="topic-metadata">

**Author:** [@skittishdev](https://discourse.cmake.org/u/skittishdev)\
**Replies:** 1\
**Last updated:** [September 4, 2025, 4:49pm UTC](https://discourse.cmake.org/t/pkgconfig-cflags-must-be-usage-requirements-for-imported-target-s/15152 "2025-09-04T16:49:37Z")

</div>

Hi, I recently discovered that when linking to a PkgConfig dependency, the cflags specified in the .pc file are not automatically added to the target compile command. I think it’d be fantastic to have cflags be usage re…

---

## [Allow for custom message in workflow steps](https://discourse.cmake.org/t/allow-for-custom-message-in-workflow-steps/15068)

<div class="topic-metadata">

**Author:** [@Kris\_Malfettone1](https://discourse.cmake.org/u/Kris_Malfettone1)\
**Replies:** 1\
**Last updated:** [August 31, 2025, 10:18pm UTC](https://discourse.cmake.org/t/allow-for-custom-message-in-workflow-steps/15068 "2025-08-31T22:18:04Z")

</div>

We use --workflow to run CI steps in TeamCity. This allows us to limit our TeamCity configuration to just one build step of running the workflow. However, as a result of specifying the steps via the single workflow vs …

---

## [Option to hide non-crucial deprecation warnings](https://discourse.cmake.org/t/option-to-hide-non-crucial-deprecation-warnings/15133)

<div class="topic-metadata">

**Author:** [@Andrej730](https://discourse.cmake.org/u/Andrej730)\
**Replies:** 0\
**Last updated:** [August 30, 2025, 8:47am UTC](https://discourse.cmake.org/t/option-to-hide-non-crucial-deprecation-warnings/15133 "2025-08-30T08:47:12Z")

</div>

Consider example below: cmake\_minimum\_required(VERSION 3.5) project(HelloInstall) if(POLICY CMP0060) # 3.3 cmake\_policy(SET CMP0060 OLD) endif() if(POLICY CMP0129) # 3.23 cmake\_policy(SET CMP0129 OLD) endif() if(POL…

---

## [idea - CPack Debian source package generator](https://discourse.cmake.org/t/idea-cpack-debian-source-package-generator/15088)

<div class="topic-metadata">

**Author:** [@segoon](https://discourse.cmake.org/u/segoon)\
**Replies:** 1\
**Last updated:** [August 25, 2025, 2:09pm UTC](https://discourse.cmake.org/t/idea-cpack-debian-source-package-generator/15088 "2025-08-25T14:09:19Z")

</div>

Hello, we maintain a project GitHub - userver-framework/userver: Production-ready C++ Asynchronous Framework with rich functionality which uses CMake+CPack for deb package generation. We want to upload the .deb package t…

---

## [Feature Request - Allow PROGRAM and ARGS fields in add\_test](https://discourse.cmake.org/t/feature-request-allow-program-and-args-fields-in-add-test/15091)

<div class="topic-metadata">

**Author:** [@chriskot870](https://discourse.cmake.org/u/chriskot870)\
**Replies:** 2\
**Last updated:** [August 21, 2025, 11:48pm UTC](https://discourse.cmake.org/t/feature-request-allow-program-and-args-fields-in-add-test/15091 "2025-08-21T23:48:32Z")

</div>

I ran into a problem when trying to debug a test on a remote host using vscode. I discussed the details of the issue in the code section, Problem debugging test on remote host. The issue revolves around the fact that th…

---

## [CMake tested by PVS-Studio](https://discourse.cmake.org/t/cmake-tested-by-pvs-studio/15082)

<div class="topic-metadata">

**Author:** [@Andrei\_Cherniaev](https://discourse.cmake.org/u/Andrei_Cherniaev)\
**Replies:** 2\
**Last updated:** [August 21, 2025, 9:24pm UTC](https://discourse.cmake.org/t/cmake-tested-by-pvs-studio/15082 "2025-08-21T21:24:18Z")

</div>

CMake was tested by PVS-Studio, hope developers will fix problems…

---

## [MacOS deployment target as a usage requirement?](https://discourse.cmake.org/t/macos-deployment-target-as-a-usage-requirement/15092)

<div class="topic-metadata">

**Author:** [@benthevining](https://discourse.cmake.org/u/benthevining)\
**Replies:** 0\
**Last updated:** [August 21, 2025, 7:45pm UTC](https://discourse.cmake.org/t/macos-deployment-target-as-a-usage-requirement/15092 "2025-08-21T19:45:20Z")

</div>

The only way I’m aware of to set the MacOS deployment target is the CMAKE\_OSX\_DEPLOYMENT\_TARGET variable. But it occurs to me that certain C++ features require a minimum OS version, so why can’t libraries express their m…

---

## [I want Help Understanding Some Build Issues in CMake Development](https://discourse.cmake.org/t/i-want-help-understanding-some-build-issues-in-cmake-development/15076)

<div class="topic-metadata">

**Author:** [@Charlotte](https://discourse.cmake.org/u/Charlotte)\
**Replies:** 1\
**Last updated:** [August 21, 2025, 5:46pm UTC](https://discourse.cmake.org/t/i-want-help-understanding-some-build-issues-in-cmake-development/15076 "2025-08-21T17:46:47Z")

</div>

Hey everyone, I have been spending some time experimenting with CMake for one of my projects & I am facing situations that I can not wrap my head around. I understand the basics of creating simple CMakeLists & linking …

---

## [Add CMAKE\_ prefix for BUILD\_SHARED\_LIBS](https://discourse.cmake.org/t/add-cmake-prefix-for-build-shared-libs/15078)

<div class="topic-metadata">

**Author:** [@nickvdbroeck](https://discourse.cmake.org/u/nickvdbroeck)\
**Replies:** 4\
**Last updated:** [August 21, 2025, 9:12am UTC](https://discourse.cmake.org/t/add-cmake-prefix-for-build-shared-libs/15078 "2025-08-21T09:12:52Z")

</div>

Just a suggestion for (what I think is an improvement) in cmake. The options BUILD\_SHARED\_LIBS and BUILD\_TESTING are both missing a CMAKE\_ prefix in my opinion. Having CMAKE\_BUILD\_SHARED\_LIBS would be more consistent w…

---

## [macOS hdiutil packaging on GitHub Actions can fail if prepackage scripts are used](https://discourse.cmake.org/t/macos-hdiutil-packaging-on-github-actions-can-fail-if-prepackage-scripts-are-used/14990)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Garramuno](https://discourse.cmake.org/u/Gonzalo_Garramuno)\
**Replies:** 3\
**Last updated:** [August 16, 2025, 2:05am UTC](https://discourse.cmake.org/t/macos-hdiutil-packaging-on-github-actions-can-fail-if-prepackage-scripts-are-used/14990 "2025-08-16T02:05:09Z")

</div>

When the prepackage.cmake scripts are used on macOS and these do a lot of file I/O macOS on GitHub actions can make hdiutil fail with a resource busy. Note that this happens sometimes only and I’ve been unable to reprodu…

---

## [Feature idea - warn about defined policy breaking \`cmake\_minimum\_required\`](https://discourse.cmake.org/t/feature-idea-warn-about-defined-policy-breaking-cmake-minimum-required/14992)

<div class="topic-metadata">

**Author:** [@Andrej730](https://discourse.cmake.org/u/Andrej730)\
**Replies:** 4\
**Last updated:** [August 16, 2025, 2:02am UTC](https://discourse.cmake.org/t/feature-idea-warn-about-defined-policy-breaking-cmake-minimum-required/14992 "2025-08-16T02:02:53Z")

</div>

E.g. if project has cmake\_minimum\_required(VERSION 3.10), but introduced cmake\_policy(SET CMP0177 OLD). Since CMP0177 was added in 3.31, anyone using it cmake\_policy with it, will get Policy "CMP0177" is not known to th…

---

## [CMake and Reproducible Builds](https://discourse.cmake.org/t/cmake-and-reproducible-builds/10942)

<div class="topic-metadata">

**Author:** [@ahmedyarub](https://discourse.cmake.org/u/ahmedyarub)\
**Replies:** 5\
**Last updated:** [August 12, 2025, 10:11pm UTC](https://discourse.cmake.org/t/cmake-and-reproducible-builds/10942 "2025-08-12T22:11:58Z")

</div>

What is the current position of the CMake team regarding hermetic/reproducible builds? Obviously, I’m drawing comparisons to Bazel. Do you think that it brings no benefit to CMake? Or it might bring speed improvements if…

---

## [CMakeError.log confuses new users](https://discourse.cmake.org/t/cmakeerror-log-confuses-new-users/5322)

<div class="topic-metadata">

**Author:** [@buildSystemPerson](https://discourse.cmake.org/u/buildSystemPerson)\
**Replies:** 6\
**Last updated:** [August 11, 2025, 9:48pm UTC](https://discourse.cmake.org/t/cmakeerror-log-confuses-new-users/5322 "2025-08-11T21:48:14Z")

</div>

At work when a user has problems with CMake the very first thing they do when contacting me is send me a copy of their CMakeError.log The problem is that the CMakeError.log almost never has the problem they are experien…

---

## [CMake Graphviz, a way to show which source files correspond to targets?](https://discourse.cmake.org/t/cmake-graphviz-a-way-to-show-which-source-files-correspond-to-targets/14119)

<div class="topic-metadata">

**Author:** [@a\_toldaiev](https://discourse.cmake.org/u/a_toldaiev)\
**Replies:** 7\
**Last updated:** [August 9, 2025, 11:17pm UTC](https://discourse.cmake.org/t/cmake-graphviz-a-way-to-show-which-source-files-correspond-to-targets/14119 "2025-08-09T23:17:25Z")

</div>

I would like to add more information about targets in the graph that is built with the graphviz option of CMake: cmake -S . --graphviz=targets.dot The targets.dot graph shows only target names and their types, and how …

---

## [COMPILE\_ONLY generator doesn't seem to create a dependency, should it?](https://discourse.cmake.org/t/compile-only-generator-doesnt-seem-to-create-a-dependency-should-it/14445)

<div class="topic-metadata">

**Author:** [@Aaron\_Cohen](https://discourse.cmake.org/u/Aaron_Cohen)\
**Replies:** 4\
**Last updated:** [July 29, 2025, 11:32pm UTC](https://discourse.cmake.org/t/compile-only-generator-doesnt-seem-to-create-a-dependency-should-it/14445 "2025-07-29T23:32:01Z")

</div>

We have a target that generates header files using a custom\_target/custom\_command pair in the “build/generated” directory, and then exports that directory with target\_include\_directories. We recently switched one consum…

---

## [visualize ctest dependency and execution profile](https://discourse.cmake.org/t/visualize-ctest-dependency-and-execution-profile/11597)

<div class="topic-metadata">

**Author:** [@pkiran](https://discourse.cmake.org/u/pkiran)\
**Replies:** 3\
**Last updated:** [July 28, 2025, 3:26pm UTC](https://discourse.cmake.org/t/visualize-ctest-dependency-and-execution-profile/11597 "2025-07-28T15:26:38Z")

</div>

Hello, Is it currently possible to Visualize the test graph, how many tests were selected for execution and which tests depend on which tests, DAG of tests To support profiling of ctest runs, get a profile of test exc…

---

## [MSBUILD : error MSB1009: no target all?](https://discourse.cmake.org/t/msbuild-error-msb1009-no-target-all/12892)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 4\
**Last updated:** [July 22, 2025, 5:13am UTC](https://discourse.cmake.org/t/msbuild-error-msb1009-no-target-all/12892 "2025-07-22T05:13:52Z")

</div>

C:\\Users\\KLEIN\_CL\\Workspace\\cpp\\execution26\>cmake --workflow --preset debug Executing workflow step 1 of 3: configure preset "debug" Preset CMake variables: CMAKE\_CXX\_EXTENSIONS:BOOL="FALSE" CMAKE\_CXX\_FLAGS="/W3 /E…

---

## [Expected fallout of CMake-based projects from CMake 4.0?](https://discourse.cmake.org/t/expected-fallout-of-cmake-based-projects-from-cmake-4-0/13689)

<div class="topic-metadata">

**Author:** [@gruenich](https://discourse.cmake.org/u/gruenich)\
**Replies:** 9\
**Last updated:** [July 20, 2025, 7:21am UTC](https://discourse.cmake.org/t/expected-fallout-of-cmake-based-projects-from-cmake-4-0/13689 "2025-07-20T07:21:46Z")

</div>

CMake 4.0 is going to introduce some degree of backward incompatibility. This will lead to fallout of CMake-based projects. Is there any attempt to figure out how many and which projects are effected? Something like a p…

---

## [Developments not visible in Milestones view](https://discourse.cmake.org/t/developments-not-visible-in-milestones-view/14161)

<div class="topic-metadata">

**Author:** [@Oodini](https://discourse.cmake.org/u/Oodini)\
**Replies:** 2\
**Last updated:** [July 20, 2025, 6:26am UTC](https://discourse.cmake.org/t/developments-not-visible-in-milestones-view/14161 "2025-07-20T06:26:30Z")

</div>

Hello, I like taking a looking in the Milestones view of CMake, to have an idea iof what will be added/fixed: https://gitlab.kitware.com/cmake/cmake/-/milestones Also, it is better than the release notes to have an ide…

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

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