# Development

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

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

**Page:** 9

---

## [IntelLLVM: Warning during the build of a Fortran (Intel ifx) static library](https://discourse.cmake.org/t/intelllvm-warning-during-the-build-of-a-fortran-intel-ifx-static-library/11258)

<div class="topic-metadata">

**Author:** [@tmishima](https://discourse.cmake.org/u/tmishima)\
**Replies:** 6\
**Last updated:** [July 25, 2024, 3:24pm UTC](https://discourse.cmake.org/t/intelllvm-warning-during-the-build-of-a-fortran-intel-ifx-static-library/11258 "2024-07-25T15:24:12Z")

</div>

Hi, I saw the warning message below when I built some fortran static library with cmake\_3.29.3 and intel ifx 2023. ifx: command line warning #10006: ignoring unknown option '/machine:x64' The relevant section in Build.…

---

## [question about the demo showed in cmake-packages(7) documentation](https://discourse.cmake.org/t/question-about-the-demo-showed-in-cmake-packages-7-documentation/11314)

<div class="topic-metadata">

**Author:** [@Li\_Haohuang](https://discourse.cmake.org/u/Li_Haohuang)\
**Replies:** 2\
**Last updated:** [July 25, 2024, 6:16am UTC](https://discourse.cmake.org/t/question-about-the-demo-showed-in-cmake-packages-7-documentation/11314 "2024-07-25T06:16:57Z")

</div>

cmake-packages(7) — CMake 3.30.1 Documentation The cmake scripts snippet showed in above linking uses cmake command “configure\_file()” to generante configuration file. But in another link CMakePackageConfigHelpers — CM…

---

## [Little question about command "target\_sources(FILE\_SET)"](https://discourse.cmake.org/t/little-question-about-command-target-sources-file-set/11273)

<div class="topic-metadata">

**Author:** [@Li\_Haohuang](https://discourse.cmake.org/u/Li_Haohuang)\
**Replies:** 5\
**Last updated:** [July 20, 2024, 12:40pm UTC](https://discourse.cmake.org/t/little-question-about-command-target-sources-file-set/11273 "2024-07-20T12:40:47Z")

</div>

I’m using the command target\_sources(FILE\_SET) to add header files for my project. I find the following description in official documentation. In my native opinion, I thouht if relative paths are specified, they are…

---

## [Are FILE\_SET CXX\_MODULES and gcc-14 fully supported with cmake v3.30?](https://discourse.cmake.org/t/are-file-set-cxx-modules-and-gcc-14-fully-supported-with-cmake-v3-30/11196)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 9\
**Last updated:** [July 12, 2024, 8:12pm UTC](https://discourse.cmake.org/t/are-file-set-cxx-modules-and-gcc-14-fully-supported-with-cmake-v3-30/11196 "2024-07-12T20:12:09Z")

</div>

On GitHub CI with Runner Image Image: macos-14-arm64 Version: 20240701.9 Included Software: runner-images/images/macos/macos-14-arm64-Readme.md at macos-14-arm64/20240701.9 · actions/runner-images · GitHub Image Rel…

---

## [Nightly dynamic analysis jobs showing uninitialised variables](https://discourse.cmake.org/t/nightly-dynamic-analysis-jobs-showing-uninitialised-variables/11175)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 1\
**Last updated:** [July 8, 2024, 3:47pm UTC](https://discourse.cmake.org/t/nightly-dynamic-analysis-jobs-showing-uninitialised-variables/11175 "2024-07-08T15:47:22Z")

</div>

@brad.king @marc.chevrier The nightly dynamic analysis jobs started showing uninitialised variables being used starting on 25th June. From what I can see, only two MRs were merged back then which have any potential to ch…

---

## [CMake error calling sh](https://discourse.cmake.org/t/cmake-error-calling-sh/11117)

<div class="topic-metadata">

**Author:** [@TritiumXs](https://discourse.cmake.org/u/TritiumXs)\
**Replies:** 1\
**Last updated:** [July 1, 2024, 1:46pm UTC](https://discourse.cmake.org/t/cmake-error-calling-sh/11117 "2024-07-01T13:46:12Z")

</div>

OS: Windows10 with MSYS2 When I am using PowerShell and VS Code, CMake incorrectly invoked the sh in MSYS, and the sh in msys2 incorrectly handled Windows-style paths, which resulted in my clang not being called correct…

---

## [Allow ExternalProject\_Add to run commands with PowerShell or MSys2 on Windows](https://discourse.cmake.org/t/allow-externalproject-add-to-run-commands-with-powershell-or-msys2-on-windows/11090)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Garramuno](https://discourse.cmake.org/u/Gonzalo_Garramuno)\
**Replies:** 1\
**Last updated:** [June 25, 2024, 7:36am UTC](https://discourse.cmake.org/t/allow-externalproject-add-to-run-commands-with-powershell-or-msys2-on-windows/11090 "2024-06-25T07:36:32Z")

</div>

ExternalProject\_Add() will, on Windows, run commands through a .bat file (for cmd.exe) when it seems the line is long. This is really good and tends to work really well. Unfortunately, when compiling FFmpeg, I am curr…

---

## [Default values for cache variables](https://discourse.cmake.org/t/default-values-for-cache-variables/11082)

<div class="topic-metadata">

**Author:** [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Replies:** 0\
**Last updated:** [June 23, 2024, 4:27am UTC](https://discourse.cmake.org/t/default-values-for-cache-variables/11082 "2024-06-23T04:27:54Z")

</div>

Hi all, A long-ago feature request (I filed it 10 years ago!) has finally had some interest in a prerequisite feature: CMake needs to know what the default value for user options are in order to report “here’s what you’…

---

## [Linking libraries installed with homebrew](https://discourse.cmake.org/t/linking-libraries-installed-with-homebrew/10930)

<div class="topic-metadata">

**Author:** [@jhshssuh](https://discourse.cmake.org/u/jhshssuh)\
**Replies:** 1\
**Last updated:** [June 10, 2024, 1:52pm UTC](https://discourse.cmake.org/t/linking-libraries-installed-with-homebrew/10930 "2024-06-10T13:52:07Z")

</div>

cmake\_minimum\_required(VERSION 3.5) set(CXX\_STANDARD 20) set(CXX\_STANDARD\_REQUIRED true) project(3dmod VERSION 1.0.0 DESCRIPTION “First OpenGL” LANGUAGES CXX) CMAKE\_PREFIX\_PATH(/usr/local/opt) find\_package(glfw3 C…

---

## [Can I test multiple generators with one build of cmake?](https://discourse.cmake.org/t/can-i-test-multiple-generators-with-one-build-of-cmake/10880)

<div class="topic-metadata">

**Author:** [@dabrahams](https://discourse.cmake.org/u/dabrahams)\
**Replies:** 9\
**Last updated:** [June 10, 2024, 12:39pm UTC](https://discourse.cmake.org/t/can-i-test-multiple-generators-with-one-build-of-cmake/10880 "2024-06-10T12:39:24Z")

</div>

As I work on changes to the CMake codebase, it would speed up my testing a lot if I could build cmake with Ninja and then use that executable to run the tests with three different generators. Is that possible?

---

## [CMake 3.29 CPACK\_WIX\_INSTALL\_SCOPE  regression](https://discourse.cmake.org/t/cmake-3-29-cpack-wix-install-scope-regression/10949)

<div class="topic-metadata">

**Author:** [@Drawpile](https://discourse.cmake.org/u/Drawpile)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 12:10pm UTC](https://discourse.cmake.org/t/cmake-3-29-cpack-wix-install-scope-regression/10949 "2024-06-05T12:10:15Z")

</div>

CMake 3.29 “fixed” the install scope of the MSI installers that the CPack WIX generator creates. Previously, it would produce a somewhat wonky amalgamation of a per-user and per-machine installation. This was changed to …

---

## [Branching strategy or release process for cmake releases](https://discourse.cmake.org/t/branching-strategy-or-release-process-for-cmake-releases/10877)

<div class="topic-metadata">

**Author:** [@pkiran](https://discourse.cmake.org/u/pkiran)\
**Replies:** 2\
**Last updated:** [May 30, 2024, 2:50pm UTC](https://discourse.cmake.org/t/branching-strategy-or-release-process-for-cmake-releases/10877 "2024-05-30T14:50:03Z")

</div>

Hi all, This is just for my educational purpose. I am trying to learn how cmake community manages so many releases in a clean way. Would like to understand the release process or branching strategy being used in cmake d…

---

## [Expected failures on master?](https://discourse.cmake.org/t/expected-failures-on-master/10876)

<div class="topic-metadata">

**Author:** [@dabrahams](https://discourse.cmake.org/u/dabrahams)\
**Replies:** 4\
**Last updated:** [May 21, 2024, 8:00pm UTC](https://discourse.cmake.org/t/expected-failures-on-master/10876 "2024-05-21T20:00:07Z")

</div>

At first I thought there was something wrong in my branch, but just running the tests on master I’m seeing failures, e.g. RunCMake.NinjaMultiConfig fails for me as follows. Am I missing some prerequisite for successful …

---

## [ctest --build-and-test ... --test-command \<DirectoryName\>?](https://discourse.cmake.org/t/ctest-build-and-test-test-command-directoryname/10875)

<div class="topic-metadata">

**Author:** [@dabrahams](https://discourse.cmake.org/u/dabrahams)\
**Replies:** 2\
**Last updated:** [May 21, 2024, 7:18pm UTC](https://discourse.cmake.org/t/ctest-build-and-test-test-command-directoryname/10875 "2024-05-21T19:18:25Z")

</div>

I’m trying to understand most of the uses of this macro in the CMake sources. If the macro is passed more than its one argument, those other arguments are passed at the end of the ctest command line, preceded by --test…

---

## [How to test a multi-config generator with multiple configurations](https://discourse.cmake.org/t/how-to-test-a-multi-config-generator-with-multiple-configurations/10869)

<div class="topic-metadata">

**Author:** [@dabrahams](https://discourse.cmake.org/u/dabrahams)\
**Replies:** 2\
**Last updated:** [May 21, 2024, 1:32pm UTC](https://discourse.cmake.org/t/how-to-test-a-multi-config-generator-with-multiple-configurations/10869 "2024-05-21T13:32:45Z")

</div>

I’m trying to modify a test declared with ADD\_TEST\_MACRO to check that multiple configurations can be built with the same build directory and a single cmake configure invocation. Is there a non-hacky technique for that?…

---

## [Fixing XCode/Swift](https://discourse.cmake.org/t/fixing-xcode-swift/10768)

<div class="topic-metadata">

**Author:** [@dabrahams](https://discourse.cmake.org/u/dabrahams)\
**Replies:** 18\
**Last updated:** [May 18, 2024, 1:50am UTC](https://discourse.cmake.org/t/fixing-xcode-swift/10768 "2024-05-18T01:50:23Z")

</div>

I’m looking to fix #25864 and I was hoping to get my bearings. Just twothree questions to start with: from looking at the code it appears that if I want to test the Xcode generator I need to use that generator to buil…

---

## [Disconnect between FILE\_SET and source\_group](https://discourse.cmake.org/t/disconnect-between-file-set-and-source-group/9132)

<div class="topic-metadata">

**Author:** [@MathiasMagnus](https://discourse.cmake.org/u/MathiasMagnus)\
**Replies:** 3\
**Last updated:** [May 16, 2024, 1:21pm UTC](https://discourse.cmake.org/t/disconnect-between-file-set-and-source-group/9132 "2024-05-16T13:21:13Z")

</div>

I find it strange that there are two abstractions introduced to group source files for two different purposes and they can’t interact in any way. Still the best way to use file sets and source groups is to define them in…

---

## [CheckTypeSize fails with mingw cross compiler](https://discourse.cmake.org/t/checktypesize-fails-with-mingw-cross-compiler/10599)

<div class="topic-metadata">

**Author:** [@HerrNamenlos123](https://discourse.cmake.org/u/HerrNamenlos123)\
**Replies:** 2\
**Last updated:** [April 29, 2024, 1:29pm UTC](https://discourse.cmake.org/t/checktypesize-fails-with-mingw-cross-compiler/10599 "2024-04-29T13:29:30Z")

</div>

I am running into an issue, trying to compile libcurl in GitHub CI with mingw-w64. It turned out that the issue is not specific to curl, but happens directly with mingw: I am directly in a ubuntu:latest docker container…

---

## [Building multiple configurations of a project at the same time with Ninja](https://discourse.cmake.org/t/building-multiple-configurations-of-a-project-at-the-same-time-with-ninja/10709)

<div class="topic-metadata">

**Author:** [@Tachyon](https://discourse.cmake.org/u/Tachyon)\
**Replies:** 5\
**Last updated:** [April 27, 2024, 9:40pm UTC](https://discourse.cmake.org/t/building-multiple-configurations-of-a-project-at-the-same-time-with-ninja/10709 "2024-04-27T21:40:01Z")

</div>

Introduction I’ve been interested for a while on how to optimize builds, and one thing that I thought about is to have a central ninja build.ninja that can drive the build for everything. It seems like the topic has been…

---

## [CMAKE\_IPO\_ISSUE msvc (/LTCG:incremental)](https://discourse.cmake.org/t/cmake-ipo-issue-msvc-ltcg-incremental/826)

<div class="topic-metadata">

**Author:** [@anon45792294](https://discourse.cmake.org/u/anon45792294)\
**Replies:** 5\
**Last updated:** [April 26, 2024, 2:17pm UTC](https://discourse.cmake.org/t/cmake-ipo-issue-msvc-ltcg-incremental/826 "2024-04-26T14:17:16Z")

</div>

I’ve create a public github to demonstrate this issue. set(CMAKE\_INTERPROCEDURAL\_OPTIMIZATION ON) The code above turns on LTO but not in an always desirable fashion. It sets /LTCG to be INCREMENTAL. Which isn’t what…

---

## [Failed to translate the content of 'parsed-literal' directive with hyperlinks in cmake.1.rst](https://discourse.cmake.org/t/failed-to-translate-the-content-of-parsed-literal-directive-with-hyperlinks-in-cmake-1-rst/10541)

<div class="topic-metadata">

**Author:** [@hwhsu1231](https://discourse.cmake.org/u/hwhsu1231)\
**Replies:** 1\
**Last updated:** [April 19, 2024, 4:20pm UTC](https://discourse.cmake.org/t/failed-to-translate-the-content-of-parsed-literal-directive-with-hyperlinks-in-cmake-1-rst/10541 "2024-04-19T16:20:23Z")

</div>

Hello, CMake Team. Recently, I posted a question on Stack Overflow, asking about how to translate the content of ‘parsed-literal’ directive of Sphinx if there exist hyperlinks (against thst part in cmake.1.rst): Howe…

---

## [Cross-platform support for Swift and XCTest](https://discourse.cmake.org/t/cross-platform-support-for-swift-and-xctest/10052)

<div class="topic-metadata">

**Author:** [@dabrahams](https://discourse.cmake.org/u/dabrahams)\
**Replies:** 18\
**Last updated:** [April 17, 2024, 8:32pm UTC](https://discourse.cmake.org/t/cross-platform-support-for-swift-and-xctest/10052 "2024-04-17T20:32:51Z")

</div>

I think I’ve solved the problem of how to build and run Swift-based XCTests, on all platforms where Swift is supported, using CMake. My code is here. It seems like some part of this work ought to be lifted into CMake, …

---

## [There are differences in binary compiled by the same code on different machines](https://discourse.cmake.org/t/there-are-differences-in-binary-compiled-by-the-same-code-on-different-machines/10467)

<div class="topic-metadata">

**Author:** [@lxu](https://discourse.cmake.org/u/lxu)\
**Replies:** 3\
**Last updated:** [April 17, 2024, 6:07pm UTC](https://discourse.cmake.org/t/there-are-differences-in-binary-compiled-by-the-same-code-on-different-machines/10467 "2024-04-17T18:07:06Z")

</div>

Hi I meet a weird issue in the different environments I set the environments by The same docker image Ubuntu 18.04 LTS Mount the same NFS folder which contains the TVM source code Use the same user account and .bashr…

---

## [cmake v3.29.1 regression (up to cmake 3.29 is fine)](https://discourse.cmake.org/t/cmake-v3-29-1-regression-up-to-cmake-3-29-is-fine/10628)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Garramuno](https://discourse.cmake.org/u/Gonzalo_Garramuno)\
**Replies:** 8\
**Last updated:** [April 14, 2024, 7:50am UTC](https://discourse.cmake.org/t/cmake-v3-29-1-regression-up-to-cmake-3-29-is-fine/10628 "2024-04-14T07:50:15Z")

</div>

find\_package() seems to be using or mangling the casing of paths when run, at least, from ExternalProject\_Add. Find attached a self-contained project that aborts with an error in find\_package(). It builds OpenColorIO (…

---

## [The Nina generator does not generate all needed dependencies?](https://discourse.cmake.org/t/the-nina-generator-does-not-generate-all-needed-dependencies/10602)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 6\
**Last updated:** [April 11, 2024, 9:46pm UTC](https://discourse.cmake.org/t/the-nina-generator-does-not-generate-all-needed-dependencies/10602 "2024-04-11T21:46:14Z")

</div>

This buildPreset works with Unix Makefiles, but not with Ninja: { "version": 6, "cmakeMinimumRequired": { "major": 3, "minor": 25, "patch": 0 }, "configurePresets": \[ { "name": "dev", …

---

## [Out of source builds and caching external assets](https://discourse.cmake.org/t/out-of-source-builds-and-caching-external-assets/10533)

<div class="topic-metadata">

**Author:** [@jjYBdx4IL](https://discourse.cmake.org/u/jjYBdx4IL)\
**Replies:** 2\
**Last updated:** [April 11, 2024, 6:31pm UTC](https://discourse.cmake.org/t/out-of-source-builds-and-caching-external-assets/10533 "2024-04-11T18:31:30Z")

</div>

Proposal: ExternalProject and FetchContent modules re-download external archives instead of caching them out of source and out of build. That is sub-optimal for two reasons: a) I might lose connectivity. Or I might wor…

---

## [Assert while compiling CheckFunctionExists.cpp with llvm clang when -fveclib=SVML flag is enabled](https://discourse.cmake.org/t/assert-while-compiling-checkfunctionexists-cpp-with-llvm-clang-when-fveclib-svml-flag-is-enabled/10481)

<div class="topic-metadata">

**Author:** [@BBWork](https://discourse.cmake.org/u/BBWork)\
**Replies:** 1\
**Last updated:** [April 11, 2024, 3:32am UTC](https://discourse.cmake.org/t/assert-while-compiling-checkfunctionexists-cpp-with-llvm-clang-when-fveclib-svml-flag-is-enabled/10481 "2024-04-11T03:32:17Z")

</div>

CheckFunctionExists.c is a part of CMake and it is used by cmake to find whether the libarary function is supported or not. When CheckFunctionExists.c is compiled with llvm clang and with -fveclib=SVML flag. Assertion is…

---

## [What is the process to add Xtensa platform to cmake.](https://discourse.cmake.org/t/what-is-the-process-to-add-xtensa-platform-to-cmake/10292)

<div class="topic-metadata">

**Author:** [@mkyadav](https://discourse.cmake.org/u/mkyadav)\
**Replies:** 1\
**Last updated:** [April 10, 2024, 9:31pm UTC](https://discourse.cmake.org/t/what-is-the-process-to-add-xtensa-platform-to-cmake/10292 "2024-04-10T21:31:19Z")

</div>

What is the process to add Xtensa platform to cmake.

---

## [The GenerateExportHeader should prevent clang-tidy warning](https://discourse.cmake.org/t/the-generateexportheader-should-prevent-clang-tidy-warning/10620)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 2\
**Last updated:** [April 10, 2024, 8:07pm UTC](https://discourse.cmake.org/t/the-generateexportheader-should-prevent-clang-tidy-warning/10620 "2024-04-10T20:07:23Z")

</div>

/\* NOLINTNEXTLINE(readability-avoid-unconditional-preprocessor-if) \*/ #if 0 /\* DEFINE\_NO\_DEPRECATED \*/ # ifndef ALGO\_NO\_DEPRECATED # define ALGO\_NO\_DEPRECATED # endif #endif \`\`

---

## [CMAKE\_VERIFY\_INTERFACE\_HEADER\_SETS should prevent clang-tidy warnings too?](https://discourse.cmake.org/t/cmake-verify-interface-header-sets-should-prevent-clang-tidy-warnings-too/10565)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 3\
**Last updated:** [April 4, 2024, 8:07pm UTC](https://discourse.cmake.org/t/cmake-verify-interface-header-sets-should-prevent-clang-tidy-warnings-too/10565 "2024-04-04T20:07:49Z")

</div>

With clang-tidy-17 there are new checks that should suppressed IMHO: // NOLINTNEXTLINE(misc-header-include-cycle,misc-include-cleaner) #include \<asio/executor.hpp\> // IWYU pragma: associated

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

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