# Development

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

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

**Page:** 23

---

## [Malformed ExternalProject grep command in AIX nightly build](https://discourse.cmake.org/t/malformed-externalproject-grep-command-in-aix-nightly-build/1262)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 1\
**Last updated:** [May 25, 2020, 12:45pm UTC](https://discourse.cmake.org/t/malformed-externalproject-grep-command-in-aix-nightly-build/1262 "2020-05-25T12:45:04Z")

</div>

I noticed the output below in the test log for the ExternalProject test case on one of the nightly build AIX machines. I can’t see where the malformed grep command could be coming from. @chuckatkins @ben.boeckel would ei…

---

## [MacOSX ExternalProject\_Add() git unstash problem ( Cmake 3.17.2, git 2.24.2, ninja 1.10.0 )](https://discourse.cmake.org/t/macosx-externalproject-add-git-unstash-problem-cmake-3-17-2-git-2-24-2-ninja-1-10-0/1245)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Garramuno](https://discourse.cmake.org/u/Gonzalo_Garramuno)\
**Replies:** 1\
**Last updated:** [May 21, 2020, 12:43pm UTC](https://discourse.cmake.org/t/macosx-externalproject-add-git-unstash-problem-cmake-3-17-2-git-2-24-2-ninja-1-10-0/1245 "2020-05-21T12:43:02Z")

</div>

I am compiling some libraries on MacOSX Catalina with ExternalProject\_Add() and sometimes it fails with a similar to the below problem with in-source compilations: y4minput.c.o already exists, no checkout y4minput.h …

---

## [TestBigEndian: QUIET](https://discourse.cmake.org/t/testbigendian-quiet/1247)

<div class="topic-metadata">

**Author:** [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)\
**Replies:** 0\
**Last updated:** [May 21, 2020, 4:17am UTC](https://discourse.cmake.org/t/testbigendian-quiet/1247 "2020-05-21T04:17:24Z")

</div>

https://cmake.org/cmake/help/latest/module/TestBigEndian.html Here is some output from my companies project configuration: -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- …

---

## [Race condition in CheckCXXSourceRuns ?](https://discourse.cmake.org/t/race-condition-in-checkcxxsourceruns/1242)

<div class="topic-metadata">

**Author:** [@Artem\_Dinaburg](https://discourse.cmake.org/u/Artem_Dinaburg)\
**Replies:** 2\
**Last updated:** [May 20, 2020, 3:51pm UTC](https://discourse.cmake.org/t/race-condition-in-checkcxxsourceruns/1242 "2020-05-20T15:51:13Z")

</div>

Hi, I notice that CheckCXXSourceRuns uses file(WRITE ...) to generate a source file, and then uses try\_compile to build the freshly generated source. It is my (possibly wrong?) understanding that there is no explicit …

---

## [The name "cmake\_command" is overloaded](https://discourse.cmake.org/t/the-name-cmake-command-is-overloaded/1238)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 23\
**Last updated:** [May 20, 2020, 12:29pm UTC](https://discourse.cmake.org/t/the-name-cmake-command-is-overloaded/1238 "2020-05-20T12:29:10Z")

</div>

It just occurred to me that we already have a variable called CMAKE\_COMMAND, so I’m wondering if there might be any places where the new cmake\_command() command being added for CMake 3.18 might cause a name clash. In par…

---

## [Why are square brackets special in lists? / Problem with cmake\_parse\_arguments](https://discourse.cmake.org/t/why-are-square-brackets-special-in-lists-problem-with-cmake-parse-arguments/1229)

<div class="topic-metadata">

**Author:** [@dbahadir](https://discourse.cmake.org/u/dbahadir)\
**Replies:** 5\
**Last updated:** [May 18, 2020, 4:25pm UTC](https://discourse.cmake.org/t/why-are-square-brackets-special-in-lists-problem-with-cmake-parse-arguments/1229 "2020-05-18T16:25:58Z")

</div>

I tried to use cmake\_parse\_arguments to parse some options given to a function command. One of those options gets as value a string which contains a single opening square bracket. As a result all other options/values fo…

---

## [Feature Request: New option for file transfer to obtain credentials](https://discourse.cmake.org/t/feature-request-new-option-for-file-transfer-to-obtain-credentials/908)

<div class="topic-metadata">

**Author:** [@oryandunn](https://discourse.cmake.org/u/oryandunn)\
**Replies:** 4\
**Last updated:** [May 13, 2020, 3:53am UTC](https://discourse.cmake.org/t/feature-request-new-option-for-file-transfer-to-obtain-credentials/908 "2020-05-13T03:53:40Z")

</div>

I’m currently using the file command to download dependencies from a server that does not allow anonymous access. On Jenkins, I was able to add credentials and access via environment variables to set them in the command…

---

## [Extra HTTP headers for \`file(UPLOAD|DOWNLOAD)\`](https://discourse.cmake.org/t/extra-http-headers-for-file-upload-download/1152)

<div class="topic-metadata">

**Author:** [@zaufi](https://discourse.cmake.org/u/zaufi)\
**Replies:** 7\
**Last updated:** [May 11, 2020, 1:04pm UTC](https://discourse.cmake.org/t/extra-http-headers-for-file-upload-download/1152 "2020-05-11T13:04:48Z")

</div>

Hi, Sometimes doing HTTP operations it’s required to provide some extra headers. For example, talking to JFrog Artifactory requires the X-JFrog-Art-Api header w/ API key. I propose to add EXTRA\_HEADERS \<string\>... name…

---

## [Script mode and arbitraty arguments](https://discourse.cmake.org/t/script-mode-and-arbitraty-arguments/1138)

<div class="topic-metadata">

**Author:** [@zaufi](https://discourse.cmake.org/u/zaufi)\
**Replies:** 6\
**Last updated:** [May 4, 2020, 3:13pm UTC](https://discourse.cmake.org/t/script-mode-and-arbitraty-arguments/1138 "2020-05-04T15:13:17Z")

</div>

Hi, I’m trying to use CMake script as \<lang\>\_COMPLIER\_LAUNCHER setting it to ${CMAKE\_COMMAND} -P my-wrapper.cmake. Here is my trivial script just to show given parameters: foreach(\_arg RANGE ${CMAKE\_ARGC}) message…

---

## [Generator expressions support for BYPRODUCTS](https://discourse.cmake.org/t/generator-expressions-support-for-byproducts/1124)

<div class="topic-metadata">

**Author:** [@hsattler](https://discourse.cmake.org/u/hsattler)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 9:44pm UTC](https://discourse.cmake.org/t/generator-expressions-support-for-byproducts/1124 "2020-04-30T21:44:13Z")

</div>

Hi, I can add a custom POST\_BUILD command using generator expressions for the additional filename just fine. However, for Ninja to notice, I’d have to use BYPRODUCTS argument in the add\_custom\_command. It is confusing …

---

## [Regarding cmake aarch64 binary in releases and cmake cross build (host: x86\_64, target: aarch64)](https://discourse.cmake.org/t/regarding-cmake-aarch64-binary-in-releases-and-cmake-cross-build-host-x86-64-target-aarch64/1109)

<div class="topic-metadata">

**Author:** [@odidev](https://discourse.cmake.org/u/odidev)\
**Replies:** 3\
**Last updated:** [April 27, 2020, 1:29pm UTC](https://discourse.cmake.org/t/regarding-cmake-aarch64-binary-in-releases-and-cmake-cross-build-host-x86-64-target-aarch64/1109 "2020-04-27T13:29:42Z")

</div>

We are able to build cmake successfully in aarch64 platform and generate binary as well. Cmake binary is available in ubuntu distributions as well, but we don’t have aarch64 binary in releases https://github.com/Kitware…

---

## [Build/Configuration Types](https://discourse.cmake.org/t/build-configuration-types/1055)

<div class="topic-metadata">

**Author:** [@oded](https://discourse.cmake.org/u/oded)\
**Replies:** 3\
**Last updated:** [April 21, 2020, 10:31am UTC](https://discourse.cmake.org/t/build-configuration-types/1055 "2020-04-21T10:31:57Z")

</div>

Hello, I’ve been using CMake for quite a while and it’s quite common that I enforce the possible different build/configuration type on my project using similar code to this: set(CMAKE\_CONFIGURATION\_TYPES "Debug" "Relea…

---

## [Tracking in-progress policies?](https://discourse.cmake.org/t/tracking-in-progress-policies/1062)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Replies:** 1\
**Last updated:** [April 21, 2020, 10:28am UTC](https://discourse.cmake.org/t/tracking-in-progress-policies/1062 "2020-04-21T10:28:07Z")

</div>

One place we have serious conflicts in CMake development is concurrent policy development. Should we keep track of these in a post here so that new policies know what number to take? Rebasing out a policy rename is not t…

---

## [\[solved\] what's the deal with CMake 7?](https://discourse.cmake.org/t/solved-whats-the-deal-with-cmake-7/1013)

<div class="topic-metadata">

**Author:** [@hex](https://discourse.cmake.org/u/hex)\
**Replies:** 1\
**Last updated:** [April 14, 2020, 10:26am UTC](https://discourse.cmake.org/t/solved-whats-the-deal-with-cmake-7/1013 "2020-04-14T10:26:45Z")

</div>

The documentation of CMake uses a prefix 7 to title reference manuals, like CMake language, packages, developer, properties, build system, … I am curious, where is this 7 coming from? What does it mean?

---

## [Contributing: Qt Test discovery](https://discourse.cmake.org/t/contributing-qt-test-discovery/985)

<div class="topic-metadata">

**Author:** [@ocroquette](https://discourse.cmake.org/u/ocroquette)\
**Replies:** 5\
**Last updated:** [April 13, 2020, 4:46pm UTC](https://discourse.cmake.org/t/contributing-qt-test-discovery/985 "2020-04-13T16:46:18Z")

</div>

Hello, I would like to contribute a Qt Test discovery function similar to the one introduced for Google Test in 3.10 (https://blog.kitware.com/dynamic-google-test-discovery-in-cmake-3-10/). I have already implemented a…

---

## [Seems about due for the vim completions to be updated again](https://discourse.cmake.org/t/seems-about-due-for-the-vim-completions-to-be-updated-again/970)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 1\
**Last updated:** [April 10, 2020, 12:34pm UTC](https://discourse.cmake.org/t/seems-about-due-for-the-vim-completions-to-be-updated-again/970 "2020-04-10T12:34:33Z")

</div>

@pboettch @brad.king A number of new variables and properties have been added to CMake since the last time the vim completions in Auxiliary/vim were updated. Is it time to re-run whatever script is used to update these …

---

## [3.17.0 bug with Ninja](https://discourse.cmake.org/t/3-17-0-bug-with-ninja/901)

<div class="topic-metadata">

**Author:** [@powderluv](https://discourse.cmake.org/u/powderluv)\
**Replies:** 2\
**Last updated:** [April 6, 2020, 12:04pm UTC](https://discourse.cmake.org/t/3-17-0-bug-with-ninja/901 "2020-04-06T12:04:30Z")

</div>

I am running into an issue with 3.17.0 (installed from kitware ppa). When I use Ninja generator I see: ninja: error: ‘cmake\_object\_order\_depends\_target\_ittnotify\_’, needed by ‘cmake\_object\_order\_depends\_target\_fooib\_’, …

---

## [User defined policies](https://discourse.cmake.org/t/user-defined-policies/899)

<div class="topic-metadata">

**Author:** [@zaufi](https://discourse.cmake.org/u/zaufi)\
**Replies:** 4\
**Last updated:** [April 1, 2020, 12:19pm UTC](https://discourse.cmake.org/t/user-defined-policies/899 "2020-04-01T12:19:07Z")

</div>

Hi, I have a quite big CMake “framework” used internally in many projects. Now I faced w/ necessity to have smth similar to CMake’s policies – e.g., I want to change behavior of some functions in a backward-compatible w…

---

## [Preventing "In-Source Builds"](https://discourse.cmake.org/t/preventing-in-source-builds/881)

<div class="topic-metadata">

**Author:** [@anon45792294](https://discourse.cmake.org/u/anon45792294)\
**Replies:** 1\
**Last updated:** [March 30, 2020, 12:38pm UTC](https://discourse.cmake.org/t/preventing-in-source-builds/881 "2020-03-30T12:38:11Z")

</div>

In source builds are usually never desire by developers. “Professional Cmake - A Practial Guide, by Craig Scott” also discourages the practice (Chapter 2.5). At my company I’ve noticed this function repeated in many ma…

---

## [How to generate portable rules (add\_custom\_command)?](https://discourse.cmake.org/t/how-to-generate-portable-rules-add-custom-command/876)

<div class="topic-metadata">

**Author:** [@CarloWood](https://discourse.cmake.org/u/CarloWood)\
**Replies:** 2\
**Last updated:** [March 29, 2020, 1:26am UTC](https://discourse.cmake.org/t/how-to-generate-portable-rules-add-custom-command/876 "2020-03-29T01:26:41Z")

</div>

Hi was using the mailinglist before, but was told that is kinda dead and I should be asking here. I’m writing a patch for cmake to address https://gitlab.kitware.com/cmake/cmake/issues/19703 For this I need to generate…

---

## [feature request for syntax sugar](https://discourse.cmake.org/t/feature-request-for-syntax-sugar/841)

<div class="topic-metadata">

**Author:** [@Ben\_M](https://discourse.cmake.org/u/Ben_M)\
**Replies:** 4\
**Last updated:** [March 26, 2020, 8:39pm UTC](https://discourse.cmake.org/t/feature-request-for-syntax-sugar/841 "2020-03-26T20:39:14Z")

</div>

Can we get more syntax sugar in cmake? instead of set(x y) allow x = y. For parent scope &x = y for each function that has 1 output parameter, allow it to be specified like so: x = string(REGEX REPLACE ...) when decl…

---

## [Feature request: REQUIRED for all find\_\* functions](https://discourse.cmake.org/t/feature-request-required-for-all-find-functions/862)

<div class="topic-metadata">

**Author:** [@KUGA2](https://discourse.cmake.org/u/KUGA2)\
**Replies:** 2\
**Last updated:** [March 26, 2020, 11:27am UTC](https://discourse.cmake.org/t/feature-request-required-for-all-find-functions/862 "2020-03-26T11:27:17Z")

</div>

find\_package() has the flag REQUIRED. If it is set, the configuration fails when the package cannot be found. I think this flag should be available for all find\_\* functions. This reduces duplicate code like find\_progra…

---

## [Replacing std::map with std::unordered\_map](https://discourse.cmake.org/t/replacing-std-map-with-std-unordered-map/843)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 3\
**Last updated:** [March 23, 2020, 5:17pm UTC](https://discourse.cmake.org/t/replacing-std-map-with-std-unordered-map/843 "2020-03-23T17:17:57Z")

</div>

I noticed that we use std::map quite a bit throughout the CMake source code. No doubt this stems from before the C++11 days, but now that we require C++11, I’m wondering if at least some of these uses might be more effic…

---

## [Espressif SoC toolchains](https://discourse.cmake.org/t/espressif-soc-toolchains/822)

<div class="topic-metadata">

**Author:** [@cplusplus](https://discourse.cmake.org/u/cplusplus)\
**Replies:** 6\
**Last updated:** [March 23, 2020, 4:07pm UTC](https://discourse.cmake.org/t/espressif-soc-toolchains/822 "2020-03-23T16:07:09Z")

</div>

Hello, I am writing here to suggest the addition of the Espressif ESP8266, ESP32 and ESP32S2 SoC to the list ot toolchains known to CMake. I know that the toolchain offered by Espressif is a customized version of GCC …

---

## [\[solved\] plugin development for cmake?](https://discourse.cmake.org/t/solved-plugin-development-for-cmake/802)

<div class="topic-metadata">

**Author:** [@hex](https://discourse.cmake.org/u/hex)\
**Replies:** 1\
**Last updated:** [March 13, 2020, 12:38pm UTC](https://discourse.cmake.org/t/solved-plugin-development-for-cmake/802 "2020-03-13T12:38:30Z")

</div>

On this site https://www.aosabook.org/en/cmake.html section 5.3.3 mentions the possibility of developing plugins in C for CMake. Where can I find more information about this?

---

## [Generating Xcode projects with group structure that matches the disk layout](https://discourse.cmake.org/t/generating-xcode-projects-with-group-structure-that-matches-the-disk-layout/790)

<div class="topic-metadata">

**Author:** [@duncanvv](https://discourse.cmake.org/u/duncanvv)\
**Replies:** 3\
**Last updated:** [March 11, 2020, 1:46pm UTC](https://discourse.cmake.org/t/generating-xcode-projects-with-group-structure-that-matches-the-disk-layout/790 "2020-03-11T13:46:47Z")

</div>

Hi, We have a patch on top of CMake that generates Xcode projects with files arranged in groups matching the disk layout of the folder structure rather than with all files in a flat list. This is how the files would be…

---

## [NSIS PATH Option screen not multi-language](https://discourse.cmake.org/t/nsis-path-option-screen-not-multi-language/772)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Garramuno](https://discourse.cmake.org/u/Gonzalo_Garramuno)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 8:32pm UTC](https://discourse.cmake.org/t/nsis-path-option-screen-not-multi-language/772 "2020-03-06T20:32:27Z")

</div>

The optional Set Path for All Users and Create Desktop Icon page in the NSIS installer is not multi-language. Therefore, a user installing in, say, Italian, will see that page in English and get confused, as the rest…

---

## [Function of "CMake Nightly Date Stamp"?](https://discourse.cmake.org/t/function-of-cmake-nightly-date-stamp/759)

<div class="topic-metadata">

**Author:** [@johan556](https://discourse.cmake.org/u/johan556)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 8:03pm UTC](https://discourse.cmake.org/t/function-of-cmake-nightly-date-stamp/759 "2020-03-03T20:03:58Z")

</div>

Hi! I have noticed that the Git archive of CMake has a regularly occurring commit by Kitware Robot, with comment “CMake Nightly Date Stamp”. I’m just curious what the function is, of these commits. Does it make the hist…

---

## [Ninja multi-config is overly complex](https://discourse.cmake.org/t/ninja-multi-config-is-overly-complex/684)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 9\
**Last updated:** [February 25, 2020, 12:15pm UTC](https://discourse.cmake.org/t/ninja-multi-config-is-overly-complex/684 "2020-02-25T12:15:46Z")

</div>

After giving the new Ninja Multi-Config generator a spin and trying to wrap my head around its associated documentation, I’m concerned that things are currently more confusing than they should be and that the defaults ar…

---

## [feature requests](https://discourse.cmake.org/t/feature-requests/407)

<div class="topic-metadata">

**Author:** [@Lieven](https://discourse.cmake.org/u/Lieven)\
**Replies:** 3\
**Last updated:** [February 16, 2020, 12:41am UTC](https://discourse.cmake.org/t/feature-requests/407 "2020-02-16T00:41:35Z")

</div>

What is the best way to request for some features, pop them up in here for debate, or create an “issue” in the issues tracker ?

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

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