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

---

## [Why remove CMAKE\_CXX\_COMPILER\_IMPORT\_STD with CMake v4.5.0?](https://discourse.cmake.org/t/why-remove-cmake-cxx-compiler-import-std-with-cmake-v4-5-0/15910)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 3\
**Last updated:** [November 13, 2026, 6:11pm UTC](https://discourse.cmake.org/t/why-remove-cmake-cxx-compiler-import-std-with-cmake-v4-5-0/15910 "2026-11-13T18:11:10Z")

</div>

I know, CMAKE\_CXX\_COMPILER\_IMPORT\_STD was experimental, but usefully and well documented. Now many projects (i.e. boost, beman, magic\_enum, …) has to change there code like this: diff --git a/CMakeLists.txt b/CMakeList…

---

## [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:** 5\
**Last updated:** [November 13, 2026, 5:55pm UTC](https://discourse.cmake.org/t/c-20-modules-and-makefiles-never/15566 "2026-11-13T17:55:22Z")

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

---

## [CMake: Best Practices Course Next Week](https://discourse.cmake.org/t/cmake-best-practices-course-next-week/15913)

<div class="topic-metadata">

**Author:** [@NickBearup](https://discourse.cmake.org/u/NickBearup)\
**Replies:** 0\
**Last updated:** [November 13, 2026, 4:11pm UTC](https://discourse.cmake.org/t/cmake-best-practices-course-next-week/15913 "2026-11-13T16:11:44Z")

</div>

Next week, the CMake team at Kitware will be hosting a virtual, half-day training course on Best Practices in CMake. If you’re looking to modernize your CMake projects or improve the performance and maintainability of y…

---

## [CMake 4.5.0 available for download](https://discourse.cmake.org/t/cmake-4-5-0-available-for-download/15912)

<div class="topic-metadata">

**Author:** [@johnwparent](https://discourse.cmake.org/u/johnwparent)\
**Replies:** 0\
**Last updated:** [November 13, 2026, 3:37pm UTC](https://discourse.cmake.org/t/cmake-4-5-0-available-for-download/15912 "2026-11-13T15:37:39Z")

</div>

We are pleased to announce that CMake 4.5 is now available for download. https://cmake.org/download/ Documentation is available at: https://cmake.org/cmake/help/v4.5 Release notes appear below and are also published …

---

## [\[BUG\] CMake 4.5.0: doxygen\_add\_docs() fails at build time when output dirs are absolute (empty cmake -E make\_directory)](https://discourse.cmake.org/t/bug-cmake-4-5-0-doxygen-add-docs-fails-at-build-time-when-output-dirs-are-absolute-empty-cmake-e-make-directory/15911)

<div class="topic-metadata">

**Author:** [@lgkl](https://discourse.cmake.org/u/lgkl)\
**Replies:** 0\
**Last updated:** [November 13, 2026, 7:22am UTC](https://discourse.cmake.org/t/bug-cmake-4-5-0-doxygen-add-docs-fails-at-build-time-when-output-dirs-are-absolute-empty-cmake-e-make-directory/15911 "2026-11-13T07:22:53Z")

</div>

My CMakeLists.txt for building documentation looks like this: cmake\_minimum\_required(VERSION 3.25) project(my\_project NONE) find\_package(Doxygen REQUIRED) set(DOXYGEN\_PROJECT\_NAME "My name") set(DOXYGEN\_FULL\_PATH\_NAME…

---

## [Force find\_package to fail if required library type (shared vs. static) is not found](https://discourse.cmake.org/t/force-find-package-to-fail-if-required-library-type-shared-vs-static-is-not-found/15612)

<div class="topic-metadata">

**Author:** [@Lars](https://discourse.cmake.org/u/Lars)\
**Replies:** 12\
**Last updated:** [November 9, 2026, 7:31pm UTC](https://discourse.cmake.org/t/force-find-package-to-fail-if-required-library-type-shared-vs-static-is-not-found/15612 "2026-11-09T19:31:56Z")

</div>

Note: a similar issue is described in Choose between shared/static library after find\_package() but the answer is inadequate for some scenarios in my opinion. Near trivial task: I want to link a shared library against d…

---

## [Windows LLVMFlang supported?](https://discourse.cmake.org/t/windows-llvmflang-supported/15905)

<div class="topic-metadata">

**Author:** [@scivision](https://discourse.cmake.org/u/scivision)\
**Replies:** 1\
**Last updated:** [November 9, 2026, 11:57am UTC](https://discourse.cmake.org/t/windows-llvmflang-supported/15905 "2026-11-09T11:57:37Z")

</div>

Is LLVMFlang (not MSYS2, rather native LLVM) supported in CMake? I hadn’t tried that before. like https://github.com/llvm/llvm-project/releases/download/llvmorg-23.1.5/LLVM-23.1.5-woa64.msi On a trivial CMakeLists.txt …

---

## [Is it a CMake bug if setting C++ standard on a dependency is required?](https://discourse.cmake.org/t/is-it-a-cmake-bug-if-setting-c-standard-on-a-dependency-is-required/15536)

<div class="topic-metadata">

**Author:** [@benthevining](https://discourse.cmake.org/u/benthevining)\
**Replies:** 5\
**Last updated:** [November 7, 2026, 10:50pm UTC](https://discourse.cmake.org/t/is-it-a-cmake-bug-if-setting-c-standard-on-a-dependency-is-required/15536 "2026-11-07T22:50:45Z")

</div>

In one of my projects, I recently removed \`set(CMAKE\_CXX\_STANDARD 23)\` from the top-level cmakelists, instead setting a compile feature on the appropriate targets. My unit test executable that depends on Catch2 failed w…

---

## [Tutorial: Step 4 Questions](https://discourse.cmake.org/t/tutorial-step-4-questions/15816)

<div class="topic-metadata">

**Author:** [@lostbits](https://discourse.cmake.org/u/lostbits)\
**Replies:** 1\
**Last updated:** [November 7, 2026, 10:32pm UTC](https://discourse.cmake.org/t/tutorial-step-4-questions/15816 "2026-11-07T22:32:41Z")

</div>

Some Questions: \[1\] "The full list of target properties .. is in cmake\_properties(7) ..." In the example: add\_library(Example) set\_target\_properties(Example PROPERTIES Key Value Hello …

---

## [Override base preset](https://discourse.cmake.org/t/override-base-preset/15903)

<div class="topic-metadata">

**Author:** [@Wallby](https://discourse.cmake.org/u/Wallby)\
**Replies:** 1\
**Last updated:** [November 6, 2026, 2:47pm UTC](https://discourse.cmake.org/t/override-base-preset/15903 "2026-11-06T14:47:09Z")

</div>

I was thinking of adding cache variables in the CMakeUserPreset.json file for some project specific configuration. But I don’t want to have to override all of the presets defined in my CMakePresets.json file. Instead, I’…

---

## [CMake 4.5.0-rc3 is ready for testing](https://discourse.cmake.org/t/cmake-4-5-0-rc3-is-ready-for-testing/15901)

<div class="topic-metadata">

**Author:** [@johnwparent](https://discourse.cmake.org/u/johnwparent)\
**Replies:** 0\
**Last updated:** [November 4, 2026, 3:27pm UTC](https://discourse.cmake.org/t/cmake-4-5-0-rc3-is-ready-for-testing/15901 "2026-11-04T15:27:38Z")

</div>

I am proud to announce the third CMake 4.5 release candidate. https://cmake.org/download/ Documentation is available at: https://cmake.org/cmake/help/v4.5 Release notes appear below and are also published at https:/…

---

## [Possible bug: GIT\_EXECUTABLE handling](https://discourse.cmake.org/t/possible-bug-git-executable-handling/15899)

<div class="topic-metadata">

**Author:** [@franki](https://discourse.cmake.org/u/franki)\
**Replies:** 0\
**Last updated:** [November 3, 2026, 6:29pm UTC](https://discourse.cmake.org/t/possible-bug-git-executable-handling/15899 "2026-11-03T18:29:16Z")

</div>

Just discovered this behavior while using cmake 3.1.16 on Windows. No other reports on this variable so I presume it may still lurk as bug (or surprise). I have two Gits installed on my system, and I want cmake to use t…

---

## [Error evaluating generator expression --- but exit states == 0 ?](https://discourse.cmake.org/t/error-evaluating-generator-expression-but-exit-states-0/15876)

<div class="topic-metadata">

**Author:** [@johan556](https://discourse.cmake.org/u/johan556)\
**Replies:** 2\
**Last updated:** [November 3, 2026, 7:29am UTC](https://discourse.cmake.org/t/error-evaluating-generator-expression-but-exit-states-0/15876 "2026-11-03T07:29:55Z")

</div>

I tried the 4.5.0-rc1 version and got what seemed like an error (se below). But the cmake invocation went ok (exit == 0), and I could build my project. Shouldn’t this be reported in some other way, not saying that it is…

---

## [Trouble opening issue on CMake GitLab due to spam filter](https://discourse.cmake.org/t/trouble-opening-issue-on-cmake-gitlab-due-to-spam-filter/15898)

<div class="topic-metadata">

**Author:** [@dbear496](https://discourse.cmake.org/u/dbear496)\
**Replies:** 1\
**Last updated:** [November 2, 2026, 1:32pm UTC](https://discourse.cmake.org/t/trouble-opening-issue-on-cmake-gitlab-due-to-spam-filter/15898 "2026-11-02T13:32:42Z")

</div>

Does anyone else have trouble with the spam filter on the CMake GitLab repository? I’ve opened 3 issues in the past month, but today when I tried opening one, it keeps giving me an error: “Request denied. Spam detected.”…

---

## [I want to write a CMake script for building a web application.](https://discourse.cmake.org/t/i-want-to-write-a-cmake-script-for-building-a-web-application/15880)

<div class="topic-metadata">

**Author:** [@amagi](https://discourse.cmake.org/u/amagi)\
**Replies:** 3\
**Last updated:** [November 2, 2026, 12:05pm UTC](https://discourse.cmake.org/t/i-want-to-write-a-cmake-script-for-building-a-web-application/15880 "2026-11-02T12:05:19Z")

</div>

Description I’m trying to build a C++ project using raylib and glm for a web application, but I don’t know how to resolve the error shown in the terminal log below. What I’ve Tried I searched through the raylib samples,…

---

## [How to detect whether the target platform is DLL/non-DLL?](https://discourse.cmake.org/t/how-to-detect-whether-the-target-platform-is-dll-non-dll/15896)

<div class="topic-metadata">

**Author:** [@dbear496](https://discourse.cmake.org/u/dbear496)\
**Replies:** 2\
**Last updated:** [November 2, 2026, 2:53am UTC](https://discourse.cmake.org/t/how-to-detect-whether-the-target-platform-is-dll-non-dll/15896 "2026-11-02T02:53:20Z")

</div>

I am trying to install runtime dependencies from an install script (install(SCRIPT)) using file(GET\_RUNTIME\_DEPENDENCIES) and file(INSTALL) because install(RUNTIME\_DEPENDENCY\_SET) doesn’t do everything I need. The docume…

---

## [ctest: property to exclude a test from default runs unless selected with -R](https://discourse.cmake.org/t/ctest-property-to-exclude-a-test-from-default-runs-unless-selected-with-r/15897)

<div class="topic-metadata">

**Author:** [@rhabacker](https://discourse.cmake.org/u/rhabacker)\
**Replies:** 0\
**Last updated:** [November 1, 2026, 1:26pm UTC](https://discourse.cmake.org/t/ctest-property-to-exclude-a-test-from-default-runs-unless-selected-with-r/15897 "2026-11-01T13:26:12Z")

</div>

Today there is no way to mark a test as “run only on request” without every user remembering -LE or -E. DISABLED never runs, even with -R. Proposal: test property MANUAL. A MANUAL test is skipped unless a -R regex is …

---

## [CPS doesn't work with Boost::headers](https://discourse.cmake.org/t/cps-doesnt-work-with-boost-headers/15720)

<div class="topic-metadata">

**Author:** [@Yanzhao\_Wang](https://discourse.cmake.org/u/Yanzhao_Wang)\
**Replies:** 6\
**Last updated:** [October 30, 2026, 3:38am UTC](https://discourse.cmake.org/t/cps-doesnt-work-with-boost-headers/15720 "2026-10-30T03:38:14Z")

</div>

Hi, I have a project which uses the Boost library through the target Boost::headers . I really like the idea of CPS and I would like to use it to install the project. But I encountered a configuration error: CMake Erro…

---

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

<div class="topic-metadata">

**Author:** [@johnwparent](https://discourse.cmake.org/u/johnwparent)\
**Replies:** 0\
**Last updated:** [October 29, 2026, 9:24pm UTC](https://discourse.cmake.org/t/cmake-4-4-5-available-for-download/15891 "2026-10-29T21:24:09Z")

</div>

We are pleased to announce that CMake 4.4.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.4.5 · Kitware/CMa…

---

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

<div class="topic-metadata">

**Author:** [@johnwparent](https://discourse.cmake.org/u/johnwparent)\
**Replies:** 0\
**Last updated:** [October 29, 2026, 7:04pm UTC](https://discourse.cmake.org/t/cmake-4-3-6-available-for-download/15890 "2026-10-29T19:04:48Z")

</div>

We are pleased to announce that CMake 4.3.6 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.6 · Kitware/CMa…

---

## [CMake 4.5.0-rc2 is ready for testing](https://discourse.cmake.org/t/cmake-4-5-0-rc2-is-ready-for-testing/15889)

<div class="topic-metadata">

**Author:** [@johnwparent](https://discourse.cmake.org/u/johnwparent)\
**Replies:** 0\
**Last updated:** [October 28, 2026, 7:12pm UTC](https://discourse.cmake.org/t/cmake-4-5-0-rc2-is-ready-for-testing/15889 "2026-10-28T19:12:20Z")

</div>

I am proud to announce the second CMake 4.5 release candidate. https://cmake.org/download/ Documentation is available at: https://cmake.org/cmake/help/v4.5 Release notes appear below and are also published at https:…

---

## [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:** 7\
**Last updated:** [October 28, 2026, 5:54pm UTC](https://discourse.cmake.org/t/efforts-to-reduce-duplication-of-features-in-cmake/15847 "2026-10-28T17:54:33Z")

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

---

## [Use non-default libs with non-default compiler on Linux](https://discourse.cmake.org/t/use-non-default-libs-with-non-default-compiler-on-linux/15883)

<div class="topic-metadata">

**Author:** [@ixsci](https://discourse.cmake.org/u/ixsci)\
**Replies:** 3\
**Last updated:** [October 27, 2026, 10:12pm UTC](https://discourse.cmake.org/t/use-non-default-libs-with-non-default-compiler-on-linux/15883 "2026-10-27T22:12:56Z")

</div>

I’m trying to build an app with non-system-wide clang & gcc. And while for gcc I just have to set the correct compiler and everything works correctly, with clang I have a different story. I use the following preset (only…

---

## [Collecting llvm code coverage data](https://discourse.cmake.org/t/collecting-llvm-code-coverage-data/15875)

<div class="topic-metadata">

**Author:** [@epistax](https://discourse.cmake.org/u/epistax)\
**Replies:** 2\
**Last updated:** [October 25, 2026, 7:27pm UTC](https://discourse.cmake.org/t/collecting-llvm-code-coverage-data/15875 "2026-10-25T19:27:13Z")

</div>

Put simply, when running a unit test build with llvm coverage enabled, by default it drops a file called default.profraw in the directory of the executable. I am using gtest\_discover\_tests and when I invoke using ctest, …

---

## [CMAKE\_SYSTEM\_NAME defaults to Android in Termux: A semantic conflict for native builds](https://discourse.cmake.org/t/cmake-system-name-defaults-to-android-in-termux-a-semantic-conflict-for-native-builds/15887)

<div class="topic-metadata">

**Author:** [@nsyhykui](https://discourse.cmake.org/u/nsyhykui)\
**Replies:** 0\
**Last updated:** [October 25, 2026, 12:45pm UTC](https://discourse.cmake.org/t/cmake-system-name-defaults-to-android-in-termux-a-semantic-conflict-for-native-builds/15887 "2026-10-25T12:45:36Z")

</div>

Hi CMake developers, I am doing a native local build inside Termux. To be precise, Termux is not a traditional Android app development environment. It is essentially a standard Linux environment, with the only differen…

---

## [CMake OSC 7501 terminal status support](https://discourse.cmake.org/t/cmake-osc-7501-terminal-status-support/15884)

<div class="topic-metadata">

**Author:** [@scivision](https://discourse.cmake.org/u/scivision)\
**Replies:** 0\
**Last updated:** [October 22, 2026, 2:25pm UTC](https://discourse.cmake.org/t/cmake-osc-7501-terminal-status-support/15884 "2026-10-22T14:25:59Z")

</div>

Recently a terminal escape sequence protocol OSC 7501 was developed to allow programs to communicate status in a defined way to other programs via the terminal. One use of this is for AI agents running programs like CMak…

---

## [CMake snap is now maintained by Canonical](https://discourse.cmake.org/t/cmake-snap-is-now-maintained-by-canonical/15807)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 1\
**Last updated:** [October 22, 2026, 2:21pm UTC](https://discourse.cmake.org/t/cmake-snap-is-now-maintained-by-canonical/15807 "2026-10-22T14:21:36Z")

</div>

Hi folks. Just a quick note to publicly record that I’ve transferred ownership of the cmake snap to Canonical. Thanks to Reuben Roessler for taking on its maintainership.

---

## [FILE\_SET is a game changer, my design works but looking for feedback](https://discourse.cmake.org/t/file-set-is-a-game-changer-my-design-works-but-looking-for-feedback/15882)

<div class="topic-metadata">

**Author:** [@Jeff\_K](https://discourse.cmake.org/u/Jeff_K)\
**Replies:** 0\
**Last updated:** [October 20, 2026, 5:27pm UTC](https://discourse.cmake.org/t/file-set-is-a-game-changer-my-design-works-but-looking-for-feedback/15882 "2026-10-20T17:27:52Z")

</div>

Hi all, I’m an engineer looking for feedback. About a year ago implications of FILE\_SET clicked for me - eliminating artificial include/ src/ split trees and messy target\_include\_directories boilerplate become a eye ope…

---

## [Qt Creator 21 - CMake Changes](https://discourse.cmake.org/t/qt-creator-21-cmake-changes/15881)

<div class="topic-metadata">

**Author:** [@cristianadam](https://discourse.cmake.org/u/cristianadam)\
**Replies:** 0\
**Last updated:** [October 20, 2026, 2:06pm UTC](https://discourse.cmake.org/t/qt-creator-21-cmake-changes/15881 "2026-10-20T14:06:33Z")

</div>

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