# Latest

**URL:** https://discourse.cmake.org/latest.md

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

---

## [Welcome to the CMake Discourse Site](https://discourse.cmake.org/t/welcome-to-the-cmake-discourse-site/8)

<div class="topic-metadata">

**Author:** [@kwrobot](https://discourse.cmake.org/u/kwrobot)\
**Replies:** 1\
**Last updated:** [November 4, 2019, 7:37pm UTC](https://discourse.cmake.org/t/welcome-to-the-cmake-discourse-site/8 "2019-11-04T19:37:59Z")

</div>

This forum hosts discussion of topics related to CMake. Please follow our Code of Conduct when posting to this forum. To get started, see the Forum Help page.

---

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

---

## [CPack error copying files](https://discourse.cmake.org/t/cpack-error-copying-files/15848)

<div class="topic-metadata">

**Author:** [@Wallby](https://discourse.cmake.org/u/Wallby)\
**Replies:** 2\
**Last updated:** [September 23, 2026, 10:54am UTC](https://discourse.cmake.org/t/cpack-error-copying-files/15848 "2026-09-23T10:54:36Z")

</div>

I have set up a .cmake file I intend to use as a template/framework. It is included at the beginning of the top level CMakeLists.txt. The actual project contains more than this (and targets not named example), but this i…

---

## [CMAKE\_INSTALL\_PREFIX vs installDir in a CMake configure preset](https://discourse.cmake.org/t/cmake-install-prefix-vs-installdir-in-a-cmake-configure-preset/15844)

<div class="topic-metadata">

**Author:** [@CsatiZoltan](https://discourse.cmake.org/u/CsatiZoltan)\
**Replies:** 3\
**Last updated:** [September 22, 2026, 10:01pm UTC](https://discourse.cmake.org/t/cmake-install-prefix-vs-installdir-in-a-cmake-configure-preset/15844 "2026-09-22T22:01:30Z")

</div>

I defined a CMake configure preset like this: { "configurePresets": \[ { "name": "base", "displayName": "Base configuration", "cacheVariables": { "CMAKE\_INSTALL\_PREFIX": "install" },…

---

## [Will find\_package try multiple FindXxx.cmake modules after one returns Xxx\_Found=FALSE?](https://discourse.cmake.org/t/will-find-package-try-multiple-findxxx-cmake-modules-after-one-returns-xxx-found-false/15849)

<div class="topic-metadata">

**Author:** [@dbear496](https://discourse.cmake.org/u/dbear496)\
**Replies:** 0\
**Last updated:** [September 22, 2026, 4:01pm UTC](https://discourse.cmake.org/t/will-find-package-try-multiple-findxxx-cmake-modules-after-one-returns-xxx-found-false/15849 "2026-09-22T16:01:32Z")

</div>

I’m in a situation where my project could have multiple directories in CMAKE\_MODULE\_PATH, and in those directories, there could be multiple Find\<package\>.cmake files for the same package. When find\_package(\<package\>) sea…

---

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

---

## [CPS export: giving different interface properties to CPS vs the CMake package from one build](https://discourse.cmake.org/t/cps-export-giving-different-interface-properties-to-cps-vs-the-cmake-package-from-one-build/15843)

<div class="topic-metadata">

**Author:** [@jobor](https://discourse.cmake.org/u/jobor)\
**Replies:** 3\
**Last updated:** [September 22, 2026, 6:29am UTC](https://discourse.cmake.org/t/cps-export-giving-different-interface-properties-to-cps-vs-the-cmake-package-from-one-build/15843 "2026-09-22T06:29:36Z")

</div>

We’re experimenting with making a large project (Qt) generate CPS files with install(PACKAGE\_INFO), alongside the usual Qt6\*Config.cmake package files, using CMake 4.4.3. Our main problem is generator expressions in int…

---

## [JUnit Results for Collections of Tests](https://discourse.cmake.org/t/junit-results-for-collections-of-tests/15845)

<div class="topic-metadata">

**Author:** [@kevinyee](https://discourse.cmake.org/u/kevinyee)\
**Replies:** 0\
**Last updated:** [September 21, 2026, 3:53pm UTC](https://discourse.cmake.org/t/junit-results-for-collections-of-tests/15845 "2026-09-21T15:53:24Z")

</div>

My use case is for dotnet test, but I think this topic could apply to any collections of tests. I’m writing a MSTest library that I register with ctest with a COMMAND dotnet test like so: add\_library(MyTestLibrary SHAR…

---

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

---

## [\[SOLVED\] cmake.org availability (was: HTTP 403)](https://discourse.cmake.org/t/solved-cmake-org-availability-was-http-403/15833)

<div class="topic-metadata">

**Author:** [@w124513](https://discourse.cmake.org/u/w124513)\
**Replies:** 8\
**Last updated:** [September 17, 2026, 8:45pm UTC](https://discourse.cmake.org/t/solved-cmake-org-availability-was-http-403/15833 "2026-09-17T20:45:27Z")

</div>

Hi there, apparently the CMake Homepage (cmake.org - some documentation sub-spaces seem to work, like https://cmake.org/cmake/help/latest/module/FetchContent.html) is somehow unavailable (pages return HTTP 403). Could y…

---

## [Fortran\_PREPROCESS ignored on Linux](https://discourse.cmake.org/t/fortran-preprocess-ignored-on-linux/9105)

<div class="topic-metadata">

**Author:** [@Maarten\_Braakhekke](https://discourse.cmake.org/u/Maarten_Braakhekke)\
**Replies:** 5\
**Last updated:** [September 17, 2026, 3:54pm UTC](https://discourse.cmake.org/t/fortran-preprocess-ignored-on-linux/9105 "2026-09-17T15:54:19Z")

</div>

It seems that the Fortran\_PREPROCESS property is not functioning properly on Linux. The default behavior of CMake on Linux is that source files are not preprocssed and Fortran\_PREPROCESS doesn seem to affect this. I att…

---

## [Does link scope have any effect for executables?](https://discourse.cmake.org/t/does-link-scope-have-any-effect-for-executables/15835)

<div class="topic-metadata">

**Author:** [@Wallby](https://discourse.cmake.org/u/Wallby)\
**Replies:** 1\
**Last updated:** [September 16, 2026, 10:02pm UTC](https://discourse.cmake.org/t/does-link-scope-have-any-effect-for-executables/15835 "2026-09-16T22:02:05Z")

</div>

I’ve seen people write all of the following: target\_link\_libaries(example someLibrary) target\_link\_libaries(example PRIVATE someLibrary) target\_link\_libaries(example PUBLIC someLibrary) Is there any difference between …

---

## [Ninja Multiconfig, compile\_commmands.db, and clang tools](https://discourse.cmake.org/t/ninja-multiconfig-compile-commmands-db-and-clang-tools/15838)

<div class="topic-metadata">

**Author:** [@Steve\_Downey](https://discourse.cmake.org/u/Steve_Downey)\
**Replies:** 1\
**Last updated:** [September 16, 2026, 7:12pm UTC](https://discourse.cmake.org/t/ninja-multiconfig-compile-commmands-db-and-clang-tools/15838 "2026-09-16T19:12:26Z")

</div>

The compile\_commands.db that is generated with multi config not unreasonably has commands for all of the configurations. This confuses clang tools, like clang-tidy and clangd, that parse the database. Running configure j…

---

## [Kitware Europe CMake Training](https://discourse.cmake.org/t/kitware-europe-cmake-training/15836)

<div class="topic-metadata">

**Author:** [@alexy.pellegrini](https://discourse.cmake.org/u/alexy.pellegrini)\
**Replies:** 0\
**Last updated:** [September 16, 2026, 11:32am UTC](https://discourse.cmake.org/t/kitware-europe-cmake-training/15836 "2026-09-16T11:32:12Z")

</div>

Kitware Europe will be hosting a CMake training course on September 2026. This CMake training is designed for attendees to… Understand the basics of CMake (variables, cache, flow, etc.) Learn the best practices of Mode…

---

## [Wrapping control structures with macros](https://discourse.cmake.org/t/wrapping-control-structures-with-macros/15834)

<div class="topic-metadata">

**Author:** [@MathiasMagnus](https://discourse.cmake.org/u/MathiasMagnus)\
**Replies:** 0\
**Last updated:** [September 16, 2026, 8:28am UTC](https://discourse.cmake.org/t/wrapping-control-structures-with-macros/15834 "2026-09-16T08:28:27Z")

</div>

I’m implementing the processor of tests defined in JSON which are then turned into CTest definitions. (Whether this processor runs at configure-time or ctest-time doesn’t matter for now.) As such, there’s a non-negligabl…

---

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

---

## [How to set an alias for a target imported by find\_package?](https://discourse.cmake.org/t/how-to-set-an-alias-for-a-target-imported-by-find-package/15831)

<div class="topic-metadata">

**Author:** [@CsatiZoltan](https://discourse.cmake.org/u/CsatiZoltan)\
**Replies:** 2\
**Last updated:** [September 15, 2026, 8:22am UTC](https://discourse.cmake.org/t/how-to-set-an-alias-for-a-target-imported-by-find-package/15831 "2026-09-15T08:22:47Z")

</div>

When I create my own library target with add\_library, it has an ALIAS option. However, I cannot find similar for libraries imported via find\_package. In my case, I import OpenMP with find\_package(OpenMP COMPONENTS CXX …

---

## [How to prevent FetchContent to patch source packages again?](https://discourse.cmake.org/t/how-to-prevent-fetchcontent-to-patch-source-packages-again/15799)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 15\
**Last updated:** [September 14, 2026, 9:27pm UTC](https://discourse.cmake.org/t/how-to-prevent-fetchcontent-to-patch-source-packages-again/15799 "2026-09-14T21:27:47Z")

</div>

I have this code and it works fine to fetch a boost archive and apply needed patches. I also builds fine with my cmake workflow preset. # ---- Add Boost source tar archive via FetchContent ---- include(FetchContent) set…

---

## [Tutorial Step4 documentation error](https://discourse.cmake.org/t/tutorial-step4-documentation-error/15826)

<div class="topic-metadata">

**Author:** [@lostbits](https://discourse.cmake.org/u/lostbits)\
**Replies:** 3\
**Last updated:** [September 14, 2026, 7:16am UTC](https://discourse.cmake.org/t/tutorial-step4-documentation-error/15826 "2026-09-14T07:16:39Z")

</div>

Am I correct in saying that: Note VendorLib is an INTERFACE library, meaning it has no build requirements (because it has already been built). All of its properties should also be interface properties. and …

---

## [A method of writing that can handle file name changes.](https://discourse.cmake.org/t/a-method-of-writing-that-can-handle-file-name-changes/15825)

<div class="topic-metadata">

**Author:** [@amagi](https://discourse.cmake.org/u/amagi)\
**Replies:** 5\
**Last updated:** [September 12, 2026, 2:54am UTC](https://discourse.cmake.org/t/a-method-of-writing-that-can-handle-file-name-changes/15825 "2026-09-12T02:54:38Z")

</div>

The following code requires a cmake --build build command to build if the filename is changed. However, emptying and regenerating the build directory is cumbersome, so I’ve assigned a single command to a shortcut key for…

---

## [CMake 4.3.5 available for download](https://discourse.cmake.org/t/cmake-4-3-5-available-for-download/15828)

<div class="topic-metadata">

**Author:** [@johnwparent](https://discourse.cmake.org/u/johnwparent)\
**Replies:** 0\
**Last updated:** [September 10, 2026, 8:14pm UTC](https://discourse.cmake.org/t/cmake-4-3-5-available-for-download/15828 "2026-09-10T20:14:40Z")

</div>

We are pleased to announce that CMake 4.3.5 is now available for download. Please use the latest release from our download page: https://cmake.org/download/ or download this release from: Release v4.3.5 · Kitware/CMa…

---

## [CMake 4.2.8 available for download](https://discourse.cmake.org/t/cmake-4-2-8-available-for-download/15827)

<div class="topic-metadata">

**Author:** [@johnwparent](https://discourse.cmake.org/u/johnwparent)\
**Replies:** 0\
**Last updated:** [September 10, 2026, 8:14pm UTC](https://discourse.cmake.org/t/cmake-4-2-8-available-for-download/15827 "2026-09-10T20:14:15Z")

</div>

We are pleased to announce that CMake 4.2.8 is now available for download. Please use the latest release from our download page: https://cmake.org/download/ or download this release from: Release v4.2.8 · Kitware/CMa…

---

## [Can't build source for reVC GameCube](https://discourse.cmake.org/t/cant-build-source-for-revc-gamecube/15824)

<div class="topic-metadata">

**Author:** [@x\_orange90\_x](https://discourse.cmake.org/u/x_orange90_x)\
**Replies:** 7\
**Last updated:** [September 10, 2026, 12:38am UTC](https://discourse.cmake.org/t/cant-build-source-for-revc-gamecube/15824 "2026-09-10T00:38:23Z")

</div>

I’m not sure if this is the correct place or if this is allowed here. I have no idea where else to ask this because the internet is void of any success stories building this source. A developer ported GTA VC to GameCube…

---

## [Bad dependency management for custom commands with Unix Makefiles generator](https://discourse.cmake.org/t/bad-dependency-management-for-custom-commands-with-unix-makefiles-generator/15823)

<div class="topic-metadata">

**Author:** [@davide9](https://discourse.cmake.org/u/davide9)\
**Replies:** 1\
**Last updated:** [September 7, 2026, 12:37pm UTC](https://discourse.cmake.org/t/bad-dependency-management-for-custom-commands-with-unix-makefiles-generator/15823 "2026-09-07T12:37:27Z")

</div>

When using “Unix Makefile” generator combined with custom commands and custom targets to generate files, CMake make use of sub-make invocation which doesn’t propagate the dependency tree between custom targets. Give the…

---

## [How to use FASTBuild with multiple targets?](https://discourse.cmake.org/t/how-to-use-fastbuild-with-multiple-targets/15822)

<div class="topic-metadata">

**Author:** [@CsatiZoltan](https://discourse.cmake.org/u/CsatiZoltan)\
**Replies:** 1\
**Last updated:** [September 4, 2026, 10:51pm UTC](https://discourse.cmake.org/t/how-to-use-fastbuild-with-multiple-targets/15822 "2026-09-04T22:51:05Z")

</div>

I tried out the FASTBuild generator with CMake (FASTBuild v1.20 with CMake 4.3.2). My project has multiple targets, which I build with cmake --build build/ By default, CMake builds all the targets, which causes an erro…

---

## [Compiling Shared Library Using External Library, and then Using it on another system.](https://discourse.cmake.org/t/compiling-shared-library-using-external-library-and-then-using-it-on-another-system/15344)

<div class="topic-metadata">

**Author:** [@Vekleon](https://discourse.cmake.org/u/Vekleon)\
**Replies:** 7\
**Last updated:** [September 3, 2026, 7:38pm UTC](https://discourse.cmake.org/t/compiling-shared-library-using-external-library-and-then-using-it-on-another-system/15344 "2026-09-03T19:38:10Z")

</div>

Right now I’m trying to compile a project using an SDK from a service on system A. Currently my shared library compiles fine with this SDK, but when I try to move this library to use on system B, I’m noticing now that it…

---

## [CMake 4.4.3 available for download](https://discourse.cmake.org/t/cmake-4-4-3-available-for-download/15821)

<div class="topic-metadata">

**Author:** [@johnwparent](https://discourse.cmake.org/u/johnwparent)\
**Replies:** 0\
**Last updated:** [September 3, 2026, 6:54pm UTC](https://discourse.cmake.org/t/cmake-4-4-3-available-for-download/15821 "2026-09-03T18:54:05Z")

</div>

We are pleased to announce that CMake 4.4.3 is now available for download. Please use the latest release from our download page: https://cmake.org/download/ or download this release from: Release v4.4.3 · Kitware/CMa…

---

## [cmake --build succeeds only after make is run](https://discourse.cmake.org/t/cmake-build-succeeds-only-after-make-is-run/15819)

<div class="topic-metadata">

**Author:** [@lostbits](https://discourse.cmake.org/u/lostbits)\
**Replies:** 6\
**Last updated:** [September 2, 2026, 8:57pm UTC](https://discourse.cmake.org/t/cmake-build-succeeds-only-after-make-is-run/15819 "2026-09-02T20:57:38Z")

</div>

Win11 (x64-86) cygiwn v3.7.0 cmake v4.2.1 Mastering Modern CMake pg. 21 cmake --build build only works after a make. project/CMakeLists.txt cmake\_minimum\_Required(VERSION 3.15) project(HelloWorld CXX) …

---

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

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