# Development

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

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

**Page:** 13

---

## [C++20 Modules MSVC error C7621: module partition 'Order' for module unit 'Mod2' was not found](https://discourse.cmake.org/t/c-20-modules-msvc-error-c7621-module-partition-order-for-module-unit-mod2-was-not-found/8177)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 9\
**Last updated:** [May 23, 2023, 9:38pm UTC](https://discourse.cmake.org/t/c-20-modules-msvc-error-c7621-module-partition-order-for-module-unit-mod2-was-not-found/8177 "2023-05-23T21:38:47Z")

</div>

With this snipped, the example works with clang++-16, but not with MSVC? # # module with one internal partition # see too: # https://learn.microsoft.com/en-us/cpp/build/reference/internal-partition?view=msvc-170 # add\_li…

---

## [\`FETCHCONTENT\_TRY\_FIND\_PACKAGE\_MODE\` for indvidual package](https://discourse.cmake.org/t/fetchcontent-try-find-package-mode-for-indvidual-package/8101)

<div class="topic-metadata">

**Author:** [@Lecris](https://discourse.cmake.org/u/Lecris)\
**Replies:** 9\
**Last updated:** [May 19, 2023, 4:41am UTC](https://discourse.cmake.org/t/fetchcontent-try-find-package-mode-for-indvidual-package/8101 "2023-05-19T04:41:20Z")

</div>

As far as I know there isn’t a way to overwrite this for an individual package (i.e. like FETCHCONTENT\_UPDATES\_DISCONNECTED\_\<uppercaseName\> allows individual control). But in the meantime is there a way to hack around it…

---

## [Improve error message?](https://discourse.cmake.org/t/improve-error-message/8118)

<div class="topic-metadata">

**Author:** [@Freed-Wu](https://discourse.cmake.org/u/Freed-Wu)\
**Replies:** 2\
**Last updated:** [May 17, 2023, 12:21pm UTC](https://discourse.cmake.org/t/improve-error-message/8118 "2023-05-17T12:21:46Z")

</div>

https://stackoverflow.com/a/30264765/16027269: This is one of those examples where a simple note could make a developers live so much easier. No tests were found!!! Did you define enable\_testing() before add\_subdirecto…

---

## [CMake Language Server?](https://discourse.cmake.org/t/cmake-language-server/7035)

<div class="topic-metadata">

**Author:** [@leha-bot](https://discourse.cmake.org/u/leha-bot)\
**Replies:** 2\
**Last updated:** [May 11, 2023, 10:48pm UTC](https://discourse.cmake.org/t/cmake-language-server/7035 "2023-05-11T22:48:11Z")

</div>

I suggest implementing the Language Server Protocol inside CMake for ease of use inside any compliant IDE. Some notes about architecture design will be later in this topic. What do you think about this idea? Kind rega…

---

## [Compile C++20 Modules with clang++-16 and CMake v3.26.3](https://discourse.cmake.org/t/compile-c-20-modules-with-clang-16-and-cmake-v3-26-3/8096)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 6\
**Last updated:** [May 11, 2023, 12:53pm UTC](https://discourse.cmake.org/t/compile-c-20-modules-with-clang-16-and-cmake-v3-26-3/8096 "2023-05-11T12:53:08Z")

</div>

I have a question about the experimental CMake support for C++ Modules with clang++ on OSX. According this Standard C++ Modules — Clang 22.0.0git documentation, it is quit simple to compile and link a C++ Module exampl…

---

## [Does CMake have a REPL (Read-Eval-Print Loop) ?](https://discourse.cmake.org/t/does-cmake-have-a-repl-read-eval-print-loop/6370)

<div class="topic-metadata">

**Author:** [@EricGT](https://discourse.cmake.org/u/EricGT)\
**Replies:** 3\
**Last updated:** [May 11, 2023, 6:48am UTC](https://discourse.cmake.org/t/does-cmake-have-a-repl-read-eval-print-loop/6370 "2023-05-11T06:48:28Z")

</div>

As the title says: Does CMake have a REPL (Read-Eval-Print Loop) ? At present I am fairly sure the answer is no but better to ask than not. Remember I am new to CMake so if something is wrong here please point it o…

---

## [Adding a SUBDIRECTORIES\_RECURSE directory property...](https://discourse.cmake.org/t/adding-a-subdirectories-recurse-directory-property/8036)

<div class="topic-metadata">

**Author:** [@neundorf](https://discourse.cmake.org/u/neundorf)\
**Replies:** 3\
**Last updated:** [May 4, 2023, 9:05pm UTC](https://discourse.cmake.org/t/adding-a-subdirectories-recurse-directory-property/8036 "2023-05-04T21:05:18Z")

</div>

Hi, I’m looking into adding a DIRECTORY property SUBDIRECTORIES\_RECURSE. Currently I implemented this in cmake script, but getting the SUBDIRECTORIES property and then iterating over them to get all their SUBDIRECTORIE…

---

## [Not able to build and run Utilities/ClangTidyModule](https://discourse.cmake.org/t/not-able-to-build-and-run-utilities-clangtidymodule/7995)

<div class="topic-metadata">

**Author:** [@dalg24](https://discourse.cmake.org/u/dalg24)\
**Replies:** 5\
**Last updated:** [April 27, 2023, 3:46pm UTC](https://discourse.cmake.org/t/not-able-to-build-and-run-utilities-clangtidymodule/7995 "2023-04-27T15:46:37Z")

</div>

After reading https://www.kitware.com/extending-clang-tidy-with-a-plugin-to-add-new-checks-for-cmake/ I tried to build Utilities/ClangTidyModule on OSX without success with various versions of Clang including the curren…

---

## [Security issues in libarchive](https://discourse.cmake.org/t/security-issues-in-libarchive/7852)

<div class="topic-metadata">

**Author:** [@Changhua\_Luo](https://discourse.cmake.org/u/Changhua_Luo)\
**Replies:** 2\
**Last updated:** [April 25, 2023, 6:14pm UTC](https://discourse.cmake.org/t/security-issues-in-libarchive/7852 "2023-04-25T18:14:15Z")

</div>

Hello, while working with CMake, I discovered that it uses an outdated version of libarchive which has some known security issues. Upon diffing with the latest version of libarchive, I found some patches that fix vulnera…

---

## [Feature Request: Implement VS\_DEBUGGER\_ properties for Intel fortran targets](https://discourse.cmake.org/t/feature-request-implement-vs-debugger-properties-for-intel-fortran-targets/7798)

<div class="topic-metadata">

**Author:** [@Nocaster60](https://discourse.cmake.org/u/Nocaster60)\
**Replies:** 7\
**Last updated:** [April 24, 2023, 11:34am UTC](https://discourse.cmake.org/t/feature-request-implement-vs-debugger-properties-for-intel-fortran-targets/7798 "2023-04-24T11:34:04Z")

</div>

(I don’t think this has been mentioned before. I can’t find any reference to it anyway.) Is there any support for this request? The need for these properties in C++ targets is recognized and there is a similar need in In…

---

## [Building Nasm files with Xcode](https://discourse.cmake.org/t/building-nasm-files-with-xcode/7934)

<div class="topic-metadata">

**Author:** [@amyspark](https://discourse.cmake.org/u/amyspark)\
**Replies:** 1\
**Last updated:** [April 24, 2023, 5:33am UTC](https://discourse.cmake.org/t/building-nasm-files-with-xcode/7934 "2023-04-24T05:33:03Z")

</div>

Hi all, I just ported a couple files to the ASM\_NASM language. But I noticed that, when using the Xcode generator, there are no build rules for the .asm files (explicitFileType is sourcecode). Looking into the mailing …

---

## [Behavior of where CMP0118's value is used is ambiguous](https://discourse.cmake.org/t/behavior-of-where-cmp0118s-value-is-used-is-ambiguous/4045)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 6\
**Last updated:** [April 24, 2023, 4:33am UTC](https://discourse.cmake.org/t/behavior-of-where-cmp0118s-value-is-used-is-ambiguous/4045 "2023-04-24T04:33:03Z")

</div>

I’m hitting what seems to me like some unexpected behavior of the CMP0118 policy (found as part of trying to solve QTBUG-95200). My straw man test project is creating a library in the top level CMakeLists.txt file and do…

---

## [if building cmake on windows is free qt license sufficient to build cmake-gui?](https://discourse.cmake.org/t/if-building-cmake-on-windows-is-free-qt-license-sufficient-to-build-cmake-gui/7951)

<div class="topic-metadata">

**Author:** [@ken\_poole](https://discourse.cmake.org/u/ken_poole)\
**Replies:** 1\
**Last updated:** [April 22, 2023, 12:35am UTC](https://discourse.cmake.org/t/if-building-cmake-on-windows-is-free-qt-license-sufficient-to-build-cmake-gui/7951 "2023-04-22T00:35:05Z")

</div>

Hi, We are building cmake on our windows boxes and have a request to support cmake-gui. I cannot find directions that indicate what Qt license (free or paid) is required to allow us to build cmake-gui. Thanks for any g…

---

## [RFC: Investigate the winegcc/wineg++ support in CMake (via CMakeParseImplicit\[Include/Link\]Info or Compiler/Wine-GNU etc.)?](https://discourse.cmake.org/t/rfc-investigate-the-winegcc-wineg-support-in-cmake-via-cmakeparseimplicit-include-link-info-or-compiler-wine-gnu-etc/6589)

<div class="topic-metadata">

**Author:** [@leha-bot](https://discourse.cmake.org/u/leha-bot)\
**Replies:** 4\
**Last updated:** [April 21, 2023, 10:34pm UTC](https://discourse.cmake.org/t/rfc-investigate-the-winegcc-wineg-support-in-cmake-via-cmakeparseimplicit-include-link-info-or-compiler-wine-gnu-etc/6589 "2023-04-21T22:34:50Z")

</div>

Hello, everyone, it would be great to add the winegcc/wineg++ support into CMake, as they are wrappers over system gcc, and they add the new include/link paths into compiler flags, but it’s not easy to extract them w/o C…

---

## [How is the drop-down menu created after the CMake Docs is built from the Help directory?](https://discourse.cmake.org/t/how-is-the-drop-down-menu-created-after-the-cmake-docs-is-built-from-the-help-directory/7882)

<div class="topic-metadata">

**Author:** [@hwhsu1231](https://discourse.cmake.org/u/hwhsu1231)\
**Replies:** 4\
**Last updated:** [April 21, 2023, 1:26pm UTC](https://discourse.cmake.org/t/how-is-the-drop-down-menu-created-after-the-cmake-docs-is-built-from-the-help-directory/7882 "2023-04-21T13:26:18Z")

</div>

As we can see, there is a drop-down menu in the navigation bar of CMake Documentation so that we can toggle different versions: However, there isn’t such a thing by default after we build the html from the Help direct…

---

## [FR - presets: specify default preset based on OS](https://discourse.cmake.org/t/fr-presets-specify-default-preset-based-on-os/7911)

<div class="topic-metadata">

**Author:** [@benthevining](https://discourse.cmake.org/u/benthevining)\
**Replies:** 1\
**Last updated:** [April 14, 2023, 11:22pm UTC](https://discourse.cmake.org/t/fr-presets-specify-default-preset-based-on-os/7911 "2023-04-14T23:22:17Z")

</div>

In my CI scripts, the steps are typically the same on all OSes. Usually the only difference is the CMake preset being used, so I typically end up with something like this (assuming that the configure, build, test, and pa…

---

## [\`FetchContent\` and \`\<PROJECT-NAME\>\_VERSION\`](https://discourse.cmake.org/t/fetchcontent-and-project-name-version/7762)

<div class="topic-metadata">

**Author:** [@Lecris](https://discourse.cmake.org/u/Lecris)\
**Replies:** 4\
**Last updated:** [March 25, 2023, 12:31am UTC](https://discourse.cmake.org/t/fetchcontent-and-project-name-version/7762 "2023-03-25T00:31:49Z")

</div>

Let’s assume that the a project uses: FetchContent\_Declare(SomeProject GIT\_REPOSITORY https://github.com/Someone/SomeProject GIT\_TAG main) FetchContent\_MakeAvailable(SomeProject) Then the user does not have access …

---

## [Helpers for \`install(EXPORT)\` for components](https://discourse.cmake.org/t/helpers-for-install-export-for-components/7705)

<div class="topic-metadata">

**Author:** [@Lecris](https://discourse.cmake.org/u/Lecris)\
**Replies:** 4\
**Last updated:** [March 22, 2023, 3:31pm UTC](https://discourse.cmake.org/t/helpers-for-install-export-for-components/7705 "2023-03-22T15:31:14Z")

</div>

I understand that we need to write our own logic for how to load the components requested, but it would be nice if there were some ways to have more control over the generated PackageTargets.cmake. For example instead of…

---

## [New generator expression $\<TARGET\_RUNTIME\_DLL\_PATHS:tgt\> ?](https://discourse.cmake.org/t/new-generator-expression-target-runtime-dll-paths-tgt/7426)

<div class="topic-metadata">

**Author:** [@neundorf](https://discourse.cmake.org/u/neundorf)\
**Replies:** 6\
**Last updated:** [March 17, 2023, 9:09pm UTC](https://discourse.cmake.org/t/new-generator-expression-target-runtime-dll-paths-tgt/7426 "2023-03-17T21:09:09Z")

</div>

Hi, I’m thinking about adding a new generator expression to make it easier to collect the directory necessary to find all dlls, and to use it then e.g. to generate a bat file or to set the VS\_DEBUGGER\_ENVIRONMENT target…

---

## [file-api: expose \`configure\_file\` and \`add\_custom\_command\`](https://discourse.cmake.org/t/file-api-expose-configure-file-and-add-custom-command/7667)

<div class="topic-metadata">

**Author:** [@Lecris](https://discourse.cmake.org/u/Lecris)\
**Replies:** 3\
**Last updated:** [March 13, 2023, 6:12pm UTC](https://discourse.cmake.org/t/file-api-expose-configure-file-and-add-custom-command/7667 "2023-03-13T18:12:47Z")

</div>

Just to confirm first, there is nothing in the file-api that can be queried to get a record of the files generated by configure\_file and add\_custom\_command(OUTPUT)? Specifically the source/command and the destination fil…

---

## [Feature Request: Add parallel-disable for specific targets](https://discourse.cmake.org/t/feature-request-add-parallel-disable-for-specific-targets/7638)

<div class="topic-metadata">

**Author:** [@jim17](https://discourse.cmake.org/u/jim17)\
**Replies:** 8\
**Last updated:** [March 11, 2023, 1:19am UTC](https://discourse.cmake.org/t/feature-request-add-parallel-disable-for-specific-targets/7638 "2023-03-11T01:19:23Z")

</div>

Add the capability of marking a target as NOTPARALLEL according to the documentation given by gnu-make. GNU make The motivation of this feature request is having targets supporting several jobs and targets that should b…

---

## [CTest: MaxRecursionDepth failures](https://discourse.cmake.org/t/ctest-maxrecursiondepth-failures/7641)

<div class="topic-metadata">

**Author:** [@scivision](https://discourse.cmake.org/u/scivision)\
**Replies:** 11\
**Last updated:** [March 10, 2023, 3:00am UTC](https://discourse.cmake.org/t/ctest-maxrecursiondepth-failures/7641 "2023-03-10T03:00:00Z")

</div>

I saw https://gitlab.kitware.com/cmake/cmake/-/merge\_requests/8302 and decided to try the MaxRecursionDepth CTest CMake self-test on an x86\_64 8GB RAM Windows 11 laptop using: downloaded binary of CMake 3.20.6 : dept…

---

## [Generator expressions: any reason there is no $\<PATH:NATIVE\_PATH\> ?](https://discourse.cmake.org/t/generator-expressions-any-reason-there-is-no-path-native-path/7566)

<div class="topic-metadata">

**Author:** [@neundorf](https://discourse.cmake.org/u/neundorf)\
**Replies:** 3\
**Last updated:** [March 7, 2023, 2:48pm UTC](https://discourse.cmake.org/t/generator-expressions-any-reason-there-is-no-path-native-path/7566 "2023-03-07T14:48:22Z")

</div>

Hi, there is a generator expression to convert a native path to cmake path, $PATH:CMAKE\_PATH. Is there a reason that there is no $PATH:NATIVE\_PATH ? What about versions which would do the conversion for lists of paths…

---

## [Feature Request: add\_custom\_command(ALL)](https://discourse.cmake.org/t/feature-request-add-custom-command-all/7609)

<div class="topic-metadata">

**Author:** [@milianw](https://discourse.cmake.org/u/milianw)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 6:53pm UTC](https://discourse.cmake.org/t/feature-request-add-custom-command-all/7609 "2023-03-06T18:53:35Z")

</div>

Hey all, would it be possible to add the ALL flag from add\_custom\_target for add\_custom\_command too? Or otherwise get the ability to manually add a dependency for the ALL pseudo target for a custom command? The motivat…

---

## [\[discussion\] \`COMPILE\_OPTIONS\` de-duplication "direction" (keep first vs keep last)](https://discourse.cmake.org/t/discussion-compile-options-de-duplication-direction-keep-first-vs-keep-last/6264)

<div class="topic-metadata">

**Author:** [@david-fong](https://discourse.cmake.org/u/david-fong)\
**Replies:** 6\
**Last updated:** [March 1, 2023, 3:36pm UTC](https://discourse.cmake.org/t/discussion-compile-options-de-duplication-direction-keep-first-vs-keep-last/6264 "2023-03-01T15:36:04Z")

</div>

In the docs for prop\_tgt/COMPILE\_OPTIONS concerning de-duplication, it doesn’t specify which duplicate is retained (first or last occurence). The final set of options used for a target is constructed by accumulating op…

---

## [Feature request: Get targets list from configured buildsystem from command line, not file api](https://discourse.cmake.org/t/feature-request-get-targets-list-from-configured-buildsystem-from-command-line-not-file-api/7537)

<div class="topic-metadata">

**Author:** [@leha-bot](https://discourse.cmake.org/u/leha-bot)\
**Replies:** 2\
**Last updated:** [February 24, 2023, 8:35pm UTC](https://discourse.cmake.org/t/feature-request-get-targets-list-from-configured-buildsystem-from-command-line-not-file-api/7537 "2023-02-24T20:35:50Z")

</div>

It would be very convenient to add flag like --list-targets into the cmake --build \<build-dir\> to get the human-readable (and possibly machine-readable in JSON/another format) list of targets. Currently it’s very diffic…

---

## [Built in package manager for CMake modules](https://discourse.cmake.org/t/built-in-package-manager-for-cmake-modules/7513)

<div class="topic-metadata">

**Author:** [@buildSystemPerson](https://discourse.cmake.org/u/buildSystemPerson)\
**Replies:** 5\
**Last updated:** [February 21, 2023, 10:46pm UTC](https://discourse.cmake.org/t/built-in-package-manager-for-cmake-modules/7513 "2023-02-21T22:46:42Z")

</div>

Problem Statement Currently there is no standard way to consume external CMake code. Which makes it challenging to share CMake code. Which is problematic for organizations, companies, package managers, etc. Example 1: …

---

## [CMAKE\_CXX\_CLANG\_TIDY in MSVC](https://discourse.cmake.org/t/cmake-cxx-clang-tidy-in-msvc/890)

<div class="topic-metadata">

**Author:** [@duhone](https://discourse.cmake.org/u/duhone)\
**Replies:** 10\
**Last updated:** [February 18, 2023, 9:05pm UTC](https://discourse.cmake.org/t/cmake-cxx-clang-tidy-in-msvc/890 "2023-02-18T21:05:32Z")

</div>

You can use clang-tidy in visual studio now apparently. I really don’t like the cmake setting json they have, so I don’t want to use that to use clang-tidy, I prefer the old fashioned way. Would be nice if cmake would ap…

---

## [CTest: add more convenient flags for end user](https://discourse.cmake.org/t/ctest-add-more-convenient-flags-for-end-user/7470)

<div class="topic-metadata">

**Author:** [@leha-bot](https://discourse.cmake.org/u/leha-bot)\
**Replies:** 4\
**Last updated:** [February 17, 2023, 6:13pm UTC](https://discourse.cmake.org/t/ctest-add-more-convenient-flags-for-end-user/7470 "2023-02-17T18:13:10Z")

</div>

Hello, I suggest to add the alias --list-tests for -N command line option (as it is more noticeable for user) and to add to short command line --TD for --test-dir. Dear @brad.king , @craig.scott , @ben.boeckel , that do…

---

## [IMPORTED\_LINK\_INTERFACE\_LIBRARIES deprecated ?](https://discourse.cmake.org/t/imported-link-interface-libraries-deprecated/7480)

<div class="topic-metadata">

**Author:** [@neundorf](https://discourse.cmake.org/u/neundorf)\
**Replies:** 3\
**Last updated:** [February 17, 2023, 6:08pm UTC](https://discourse.cmake.org/t/imported-link-interface-libraries-deprecated/7480 "2023-02-17T18:08:26Z")

</div>

Hi, the documentation for IMPORTED\_LINK\_INTERFACE\_LIBRARIES says it is deprecated. I would move it then to the “deprecated target properties” section if that is correct. I guess the target property IMPORTED\_LINK\_DEPEND…

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

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