# Development

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

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

**Page:** 15

---

## [FetchContent and find\_dependency](https://discourse.cmake.org/t/fetchcontent-and-find-dependency/6591)

<div class="topic-metadata">

**Author:** [@benthevining](https://discourse.cmake.org/u/benthevining)\
**Replies:** 1\
**Last updated:** [October 7, 2022, 6:13am UTC](https://discourse.cmake.org/t/fetchcontent-and-find-dependency/6591 "2022-10-07T06:13:06Z")

</div>

@craig.scott thank you for your wonderful work on FetchContent, the find\_package integrations are an amazing feature! Unless the docs are out of date, it looks like find\_dependency only wraps a find\_package call, there …

---

## [Install binary distribution to /usr](https://discourse.cmake.org/t/install-binary-distribution-to-usr/6612)

<div class="topic-metadata">

**Author:** [@sweemer](https://discourse.cmake.org/u/sweemer)\
**Replies:** 8\
**Last updated:** [October 6, 2022, 8:49am UTC](https://discourse.cmake.org/t/install-binary-distribution-to-usr/6612 "2022-10-06T08:49:40Z")

</div>

Is there a way to install the binary distributions from https://cmake.org/download/ to /usr? I understand that the directory structure of the binary distributions is significant and e.g. the cmake binary should not be m…

---

## [CMake 3.24 does not set the include path for Visual Studio correctly when using Vulkan](https://discourse.cmake.org/t/cmake-3-24-does-not-set-the-include-path-for-visual-studio-correctly-when-using-vulkan/6598)

<div class="topic-metadata">

**Author:** [@pythno](https://discourse.cmake.org/u/pythno)\
**Replies:** 2\
**Last updated:** [October 4, 2022, 7:15pm UTC](https://discourse.cmake.org/t/cmake-3-24-does-not-set-the-include-path-for-visual-studio-correctly-when-using-vulkan/6598 "2022-10-04T19:15:20Z")

</div>

Hi, I use cmake to generate project file for Visual Studio using Vulkan. Doing this: target\_link\_libraries(vkal PRIVATE Vulkan::Vulkan PRIVATE Vulkan::shaderc\_combined ) previously would set t…

---

## [CMake compiler test intermittently fails to generate a .exe](https://discourse.cmake.org/t/cmake-compiler-test-intermittently-fails-to-generate-a-exe/6573)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 1\
**Last updated:** [September 27, 2022, 6:58pm UTC](https://discourse.cmake.org/t/cmake-compiler-test-intermittently-fails-to-generate-a-exe/6573 "2022-09-27T18:58:04Z")

</div>

I have a production site that has been chasing a strange issue that I’m running out of ideas for. I’m curious if anyone has seen the same thing or knows what the underlying cause is. The setup is VS2019 with the clang t…

---

## [FindZSTD?](https://discourse.cmake.org/t/findzstd/3506)

<div class="topic-metadata">

**Author:** [@pdimov](https://discourse.cmake.org/u/pdimov)\
**Replies:** 9\
**Last updated:** [September 23, 2022, 12:01am UTC](https://discourse.cmake.org/t/findzstd/3506 "2022-09-23T00:01:59Z")

</div>

Are there plans to add FindZSTD to CMake, or if not (I understand adding find modules is discouraged), what is the recommended idiomatic way to find zstd? Does every project need to carry its own FindZSTD.cmake, are dist…

---

## [macro not defined (\_\_ARCH\_NAME): build a cmake project with green hill multi on windows](https://discourse.cmake.org/t/macro-not-defined-arch-name-build-a-cmake-project-with-green-hill-multi-on-windows/6268)

<div class="topic-metadata">

**Author:** [@tianfang](https://discourse.cmake.org/u/tianfang)\
**Replies:** 10\
**Last updated:** [September 16, 2022, 7:59pm UTC](https://discourse.cmake.org/t/macro-not-defined-arch-name-build-a-cmake-project-with-green-hill-multi-on-windows/6268 "2022-09-16T19:59:39Z")

</div>

my CMakeLists.txt: project(myhello) add\_executable(hello\_test hello.c) ================================================================= on cmd: C:\\Users\\tianfang\\Desktop\\tianfang\\src\\hello\>cmake -G “Green Hills MUL…

---

## [Deprecation warnings with clang when setting LANGUAGE property](https://discourse.cmake.org/t/deprecation-warnings-with-clang-when-setting-language-property/6490)

<div class="topic-metadata">

**Author:** [@sszabo](https://discourse.cmake.org/u/sszabo)\
**Replies:** 3\
**Last updated:** [September 15, 2022, 4:38pm UTC](https://discourse.cmake.org/t/deprecation-warnings-with-clang-when-setting-language-property/6490 "2022-09-15T16:38:44Z")

</div>

With CMake 3.16.3 and 3.23.1 at least, when using CC=clang CXX=clang++ and doing a CMakeLists.txt like the following (simplified from the case in the WebKit code) I see a deprecation warning about .c files being treated …

---

## [Discussion about more FindVulkan improvements](https://discourse.cmake.org/t/discussion-about-more-findvulkan-improvements/5500)

<div class="topic-metadata">

**Author:** [@andrea.machizaud](https://discourse.cmake.org/u/andrea.machizaud)\
**Replies:** 2\
**Last updated:** [September 9, 2022, 7:53pm UTC](https://discourse.cmake.org/t/discussion-about-more-findvulkan-improvements/5500 "2022-09-09T19:53:01Z")

</div>

I am cross-posting my CMake issue here trying to reach a wider audience and get more feedbacks : Feature Request: Augment FindVulkan to find third-party libraries shipped with VulkanSDK In a nutshell, I wish that FindVu…

---

## [Visual studio vs\_link\_exe/manifest Questions...](https://discourse.cmake.org/t/visual-studio-vs-link-exe-manifest-questions/6441)

<div class="topic-metadata">

**Author:** [@KUGA2](https://discourse.cmake.org/u/KUGA2)\
**Replies:** 2\
**Last updated:** [September 9, 2022, 2:47pm UTC](https://discourse.cmake.org/t/visual-studio-vs-link-exe-manifest-questions/6441 "2022-09-09T14:47:08Z")

</div>

The linker with Visual studio and ninja is very complicated. It runs: cmake.exe -E vs\_link\_exe --intdir=Components\\OSBase\\Common\\Temperature\\UnitTest\\CMakeFiles\\UT\_temperature.dir --rc=C:\\PROGRA~2\\WI3CF2~1\\10\\bin\\10020…

---

## [Feature requests for presets](https://discourse.cmake.org/t/feature-requests-for-presets/4381)

<div class="topic-metadata">

**Author:** [@benthevining](https://discourse.cmake.org/u/benthevining)\
**Replies:** 2\
**Last updated:** [September 8, 2022, 2:34pm UTC](https://discourse.cmake.org/t/feature-requests-for-presets/4381 "2022-09-08T14:34:56Z")

</div>

I love CMake. The new presets feature is really powerful, and super helpful, but I still use a small Makefile wrapping commonly used cmake commands and doing a couple of configuration things that as of now aren’t possibl…

---

## [Feature Request/Discussion: Allow in-place list definitions in IF(\<var\> IN\_LIST)](https://discourse.cmake.org/t/feature-request-discussion-allow-in-place-list-definitions-in-if-var-in-list/6416)

<div class="topic-metadata">

**Author:** [@leha-bot](https://discourse.cmake.org/u/leha-bot)\
**Replies:** 2\
**Last updated:** [September 6, 2022, 1:43pm UTC](https://discourse.cmake.org/t/feature-request-discussion-allow-in-place-list-definitions-in-if-var-in-list/6416 "2022-09-06T13:43:03Z")

</div>

like option(MYVAR "some myvar" TEST\_VALUE1) if(MYVAR IN\_LIST "TEST\_VALUE1;TEST\_VALUE2") thanks for your attention.

---

## [Any research papers comparing CMake to Prolog?](https://discourse.cmake.org/t/any-research-papers-comparing-cmake-to-prolog/6350)

<div class="topic-metadata">

**Author:** [@EricGT](https://discourse.cmake.org/u/EricGT)\
**Replies:** 5\
**Last updated:** [August 29, 2022, 6:12pm UTC](https://discourse.cmake.org/t/any-research-papers-comparing-cmake-to-prolog/6350 "2022-08-29T18:12:26Z")

</div>

In learning CMake see lots of similarities to Prolog. Does any one know of a research paper that compares and contrast CMake with Prolog? Or at a higher level comparing Unix style make systems with Prolog?

---

## [Why is "Visual Studio 10 2010" deprecated?](https://discourse.cmake.org/t/why-is-visual-studio-10-2010-deprecated/6348)

<div class="topic-metadata">

**Author:** [@veganaiZe](https://discourse.cmake.org/u/veganaiZe)\
**Replies:** 1\
**Last updated:** [August 26, 2022, 4:06pm UTC](https://discourse.cmake.org/t/why-is-visual-studio-10-2010-deprecated/6348 "2022-08-26T16:06:31Z")

</div>

I’m curious why “Visual Studio 10 2010” support is deprecated considering other (older) systems, such as VS 2008, Watcom, etc. are still supported. Windows SDK 7.1 (aka. 2010 build tools) is still available for download…

---

## [System is unknown to cmake MINGW64\_NT-6.3-9600](https://discourse.cmake.org/t/system-is-unknown-to-cmake-mingw64-nt-6-3-9600/6331)

<div class="topic-metadata">

**Author:** [@veganaiZe](https://discourse.cmake.org/u/veganaiZe)\
**Replies:** 1\
**Last updated:** [August 26, 2022, 2:56am UTC](https://discourse.cmake.org/t/system-is-unknown-to-cmake-mingw64-nt-6-3-9600/6331 "2022-08-26T02:56:46Z")

</div>

I get the following message every time I make a project in MSYS2 on Windows 8.1 (64-bit)… System is unknown to cmake, create: Platform/MINGW64\_NT-6.3-9600 to use this system, please post your config file on discourse.cm…

---

## [APT Repository Broken](https://discourse.cmake.org/t/apt-repository-broken/6217)

<div class="topic-metadata">

**Author:** [@sebastient](https://discourse.cmake.org/u/sebastient)\
**Replies:** 3\
**Last updated:** [August 25, 2022, 9:27am UTC](https://discourse.cmake.org/t/apt-repository-broken/6217 "2022-08-25T09:27:06Z")

</div>

The apt.kitware.com for at least focal is broken currently, looks like cmake-data 2.24.0 is premature and missing. Using focal-rc works with 2.24.0~rc5 so it is specific to the “stable” version of the repository. sudo …

---

## [FindCUDAToolkit CUDA::cupti fails since 3.24.1](https://discourse.cmake.org/t/findcudatoolkit-cuda-cupti-fails-since-3-24-1/6327)

<div class="topic-metadata">

**Author:** [@sami](https://discourse.cmake.org/u/sami)\
**Replies:** 3\
**Last updated:** [August 24, 2022, 4:11pm UTC](https://discourse.cmake.org/t/findcudatoolkit-cuda-cupti-fails-since-3-24-1/6327 "2022-08-24T16:11:51Z")

</div>

Hi, Since possibly a recent change, FindCUDAToolkit fails to find the libcupti since it is not looking to /usr/loca/cuda/include path anymore. Nvidia cuda packages install headers together with the other headers instead…

---

## [Build cmake 3.23.3 and 3.24... from source do not find any results](https://discourse.cmake.org/t/build-cmake-3-23-3-and-3-24-from-source-do-not-find-any-results/6193)

<div class="topic-metadata">

**Author:** [@dreuzel](https://discourse.cmake.org/u/dreuzel)\
**Replies:** 5\
**Last updated:** [August 5, 2022, 8:37am UTC](https://discourse.cmake.org/t/build-cmake-3-23-3-and-3-24-from-source-do-not-find-any-results/6193 "2022-08-05T08:37:56Z")

</div>

I’m rebuilding the official Cmake 3.23.3 from source it takes its time but … i can not find any resulting files (except some created objects ) building for RPI on RPI4 the process takes its time as expected …

---

## [Why CMake functions can't return value?](https://discourse.cmake.org/t/why-cmake-functions-cant-return-value/1710)

<div class="topic-metadata">

**Author:** [@OleksandrKvl](https://discourse.cmake.org/u/OleksandrKvl)\
**Replies:** 10\
**Last updated:** [July 28, 2022, 9:42pm UTC](https://discourse.cmake.org/t/why-cmake-functions-cant-return-value/1710 "2022-07-28T21:42:41Z")

</div>

Hi there! This question bothered me for a while: why CMake functions historically can’t return values? I couldn’t resist and implemented this feature, you can read about it here “Allowing CMake functions to return(value)”…

---

## [Expected behavior for shell meta characters like $ in target\_compile\_definitions, target\_compile\_options, etcetera.](https://discourse.cmake.org/t/expected-behavior-for-shell-meta-characters-like-in-target-compile-definitions-target-compile-options-etcetera/6159)

<div class="topic-metadata">

**Author:** [@fdk17](https://discourse.cmake.org/u/fdk17)\
**Replies:** 1\
**Last updated:** [July 27, 2022, 2:56pm UTC](https://discourse.cmake.org/t/expected-behavior-for-shell-meta-characters-like-in-target-compile-definitions-target-compile-options-etcetera/6159 "2022-07-27T14:56:24Z")

</div>

I’m trying to understand the desired CMake behavior with handling shell meta characters so I can fix some issues with Green Hills MULTI generator. For example, what is supposed to happen with: target\_compile\_definition…

---

## [PROPERTIES project\_group](https://discourse.cmake.org/t/properties-project-group/6129)

<div class="topic-metadata">

**Author:** [@mickae1](https://discourse.cmake.org/u/mickae1)\
**Replies:** 5\
**Last updated:** [July 25, 2022, 7:14am UTC](https://discourse.cmake.org/t/properties-project-group/6129 "2022-07-25T07:14:29Z")

</div>

I need in my project, to organize my sub projects. Can you add this functionality ? set\_target\_properties(${project\_name} PROPERTIES PROJECT\_GROUP group\_name) I’m not the first one that talk about it, I found many ref…

---

## [Improvements to the cache editor](https://discourse.cmake.org/t/improvements-to-the-cache-editor/6133)

<div class="topic-metadata">

**Author:** [@benthevining](https://discourse.cmake.org/u/benthevining)\
**Replies:** 3\
**Last updated:** [July 25, 2022, 6:05am UTC](https://discourse.cmake.org/t/improvements-to-the-cache-editor/6133 "2022-07-25T06:05:17Z")

</div>

I’ve got a few suggestions for improvements to the GUI cache editor, which I thought I’d post here for discussion rather than on the issue tracker, since these are more exploratory suggestions than hard feature requests. …

---

## [Arguments for compiler checks](https://discourse.cmake.org/t/arguments-for-compiler-checks/6096)

<div class="topic-metadata">

**Author:** [@go2sh](https://discourse.cmake.org/u/go2sh)\
**Replies:** 2\
**Last updated:** [July 21, 2022, 12:07pm UTC](https://discourse.cmake.org/t/arguments-for-compiler-checks/6096 "2022-07-21T12:07:09Z")

</div>

Hi there, I’m currently implementing a new compiler support, which is doing cross compilation. I run into problems with the compiler checks. The arguments needed for the compiler checks are not always needed for the act…

---

## [Building CMake with CMake: what about modules ?](https://discourse.cmake.org/t/building-cmake-with-cmake-what-about-modules/5956)

<div class="topic-metadata">

**Author:** [@cartu38](https://discourse.cmake.org/u/cartu38)\
**Replies:** 4\
**Last updated:** [July 9, 2022, 1:08pm UTC](https://discourse.cmake.org/t/building-cmake-with-cmake-what-about-modules/5956 "2022-07-09T13:08:17Z")

</div>

Hello, Thinking to contribute I was looking to get a local build running. Relying on GitHub - Kitware/CMake: Mirror of CMake upstream repository I’m able to get cmake application what’s good start already. Now how can…

---

## [GNUInstallDirs variable for license directory and CMake config files](https://discourse.cmake.org/t/gnuinstalldirs-variable-for-license-directory-and-cmake-config-files/5998)

<div class="topic-metadata">

**Author:** [@cglf](https://discourse.cmake.org/u/cglf)\
**Replies:** 0\
**Last updated:** [July 4, 2022, 11:00pm UTC](https://discourse.cmake.org/t/gnuinstalldirs-variable-for-license-directory-and-cmake-config-files/5998 "2022-07-04T23:00:57Z")

</div>

I’ve noticed that VTK installs licenses to ${CMAKE\_INSTALL\_DATADIR}/licenses/VTK. Is there any plan to provide ${CMAKE\_INSTALL\_DATADIR}/licenses/${PROJECT\_NAME} as default install location for licenses in GNUInstallDirs?…

---

## [Efficiency issues with ExternalProject sub-builds under Ninja](https://discourse.cmake.org/t/efficiency-issues-with-externalproject-sub-builds-under-ninja/3241)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 11\
**Last updated:** [June 27, 2022, 6:04pm UTC](https://discourse.cmake.org/t/efficiency-issues-with-externalproject-sub-builds-under-ninja/3241 "2022-06-27T18:04:46Z")

</div>

Some projects need to use ExternalProject because the sub-builds use a different architecture, different SDK, different build type or some other reason that means things can’t all be kept in a single CMake build. Ordinar…

---

## [Adding language](https://discourse.cmake.org/t/adding-language/5857)

<div class="topic-metadata">

**Author:** [@mattsson](https://discourse.cmake.org/u/mattsson)\
**Replies:** 4\
**Last updated:** [June 13, 2022, 8:01pm UTC](https://discourse.cmake.org/t/adding-language/5857 "2022-06-13T20:01:49Z")

</div>

Is it at all possible to add a language to cmake, properly with full support? I need to detect if the currently compiled file is this or that language so I need to use for example $\<COMPILE\_LANGUAGE:Mycompiler\> and thos…

---

## [Support for Beast - The Build System](https://discourse.cmake.org/t/support-for-beast-the-build-system/5831)

<div class="topic-metadata">

**Author:** [@Gaurav\_Dawra](https://discourse.cmake.org/u/Gaurav_Dawra)\
**Replies:** 10\
**Last updated:** [June 10, 2022, 6:22am UTC](https://discourse.cmake.org/t/support-for-beast-the-build-system/5831 "2022-06-10T06:22:55Z")

</div>

Hi! I am the creator of a new build system: Beast. Beast is a build system focused on ease of use and speed. It works at the very base level and helps you build your projects easily. Compared to Make and Ninja, it is mu…

---

## [Highly duplicate data in cmake\_install.cmake files](https://discourse.cmake.org/t/highly-duplicate-data-in-cmake-install-cmake-files/5816)

<div class="topic-metadata">

**Author:** [@mugwort](https://discourse.cmake.org/u/mugwort)\
**Replies:** 2\
**Last updated:** [June 8, 2022, 1:49pm UTC](https://discourse.cmake.org/t/highly-duplicate-data-in-cmake-install-cmake-files/5816 "2022-06-08T13:49:13Z")

</div>

Hi, I’m fairly new to cmake and using it in the project at work. It mostly all seems good but whats bugging me is the amount of duplicate data that gets generated in the build folder, it seems for every cpp file a cmake…

---

## [Adding default build configuration for scheme in XCode](https://discourse.cmake.org/t/adding-default-build-configuration-for-scheme-in-xcode/2129)

<div class="topic-metadata">

**Author:** [@zhang\_kai](https://discourse.cmake.org/u/zhang_kai)\
**Replies:** 8\
**Last updated:** [May 30, 2022, 9:22pm UTC](https://discourse.cmake.org/t/adding-default-build-configuration-for-scheme-in-xcode/2129 "2022-05-30T21:22:37Z")

</div>

For now, the default build configuration in the XCode scheme is hardcoded in cmXCodeScheme.cxx. For example, the build configuration for launch action(the “RUN” command in XCode) is “Debug”. Sometimes, it’s not what the…

---

## [Godbolt examples in CMake documentation](https://discourse.cmake.org/t/godbolt-examples-in-cmake-documentation/5762)

<div class="topic-metadata">

**Author:** [@friendlyanon](https://discourse.cmake.org/u/friendlyanon)\
**Replies:** 1\
**Last updated:** [May 30, 2022, 7:24pm UTC](https://discourse.cmake.org/t/godbolt-examples-in-cmake-documentation/5762 "2022-05-30T19:24:59Z")

</div>

The Godbolt compiler explorer has gained an IDE tree ability not that long, which I think could be used to host examples embedded in the CMake documentation. Here is one example: Compiler Explorer People often complain …

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

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