# Latest

**URL:** https://discourse.cmake.org/latest.md?page=183

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

**Page:** 184

---

## [What's new with respect to External\_Project build systems?](https://discourse.cmake.org/t/whats-new-with-respect-to-external-project-build-systems/2052)

<div class="topic-metadata">

**Author:** [@KentWilliams](https://discourse.cmake.org/u/KentWilliams)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 10:59pm UTC](https://discourse.cmake.org/t/whats-new-with-respect-to-external-project-build-systems/2052 "2020-11-25T22:59:46Z")

</div>

4 years ago I converted the program I work on to use External\_Project to build prerequisites for the main code. It uses the “SuperBuild then Build” pattern where all the prerequisites are built out of one main CMakeList…

---

## [GET\_RUNTIME\_DEPENDENCIES does not seem to work with MinGW](https://discourse.cmake.org/t/get-runtime-dependencies-does-not-seem-to-work-with-mingw/2239)

<div class="topic-metadata">

**Author:** [@foolnotion](https://discourse.cmake.org/u/foolnotion)\
**Replies:** 3\
**Last updated:** [November 25, 2020, 10:12pm UTC](https://discourse.cmake.org/t/get-runtime-dependencies-does-not-seem-to-work-with-mingw/2239 "2020-11-25T22:12:19Z")

</div>

Hi, Using arch linux with MinGW and cmake 3.19. The following code works on Windows / MSVC / cmake version 3.18.20081302-MSVC\_2, but on MinGW does not find any dependencies at all. mylib is a shared library. On Windows …

---

## [Status of CMake debugger](https://discourse.cmake.org/t/status-of-cmake-debugger/567)

<div class="topic-metadata">

**Author:** [@ben](https://discourse.cmake.org/u/ben)\
**Replies:** 12\
**Last updated:** [November 25, 2020, 8:16pm UTC](https://discourse.cmake.org/t/status-of-cmake-debugger/567 "2020-11-25T20:16:11Z")

</div>

I see that a 2 year old closed MR attempted to add a debugger mode to CMake but was never merged. Have there been any activity to add a debugger to CMake since then (~2 years ago)? If the approach in the closed MR still …

---

## [cmake exception](https://discourse.cmake.org/t/cmake-exception/2240)

<div class="topic-metadata">

**Author:** [@kasha](https://discourse.cmake.org/u/kasha)\
**Replies:** 4\
**Last updated:** [November 25, 2020, 5:46pm UTC](https://discourse.cmake.org/t/cmake-exception/2240 "2020-11-25T17:46:25Z")

</div>

cmake -DCMAKE\_EXPORT\_COMPILE\_COMMANDS=ON .. -- Configuring done terminate called after throwing an instance of 'std::out\_of\_range' what(): basic\_string::replace: \_\_pos (which is 18446744073709551615) \> this-\>size() (…

---

## [How add .so lib on Qt for Android using CMake](https://discourse.cmake.org/t/how-add-so-lib-on-qt-for-android-using-cmake/2224)

<div class="topic-metadata">

**Author:** [@software.dev992](https://discourse.cmake.org/u/software.dev992)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 5:37pm UTC](https://discourse.cmake.org/t/how-add-so-lib-on-qt-for-android-using-cmake/2224 "2020-11-25T17:37:26Z")

</div>

Hi, I have a project that I build for android using Qt 5.12.9. This project uses CMake 3.16.2 and of course androiddeployqt. I don’t see any gradle script in my project tree so I think that is all automated by androidde…

---

## [Expressing runtime dependencies in CMake](https://discourse.cmake.org/t/expressing-runtime-dependencies-in-cmake/2235)

<div class="topic-metadata">

**Author:** [@Joachim\_Priesner](https://discourse.cmake.org/u/Joachim_Priesner)\
**Replies:** 1\
**Last updated:** [November 25, 2020, 5:33pm UTC](https://discourse.cmake.org/t/expressing-runtime-dependencies-in-cmake/2235 "2020-11-25T17:33:01Z")

</div>

Hi all, I am working on a project making excessive use of run-time library loading, i.e. dlopen()/LoadLibrary(). This means that if target B uses library A, it needs: at compile time: the include directories of A at …

---

## [Compiling C as C++ in CMake 3.18](https://discourse.cmake.org/t/compiling-c-as-c-in-cmake-3-18/2172)

<div class="topic-metadata">

**Author:** [@Scott\_Michel](https://discourse.cmake.org/u/Scott_Michel)\
**Replies:** 3\
**Last updated:** [November 25, 2020, 5:27pm UTC](https://discourse.cmake.org/t/compiling-c-as-c-in-cmake-3-18/2172 "2020-11-25T17:27:20Z")

</div>

I’m (semi-)maintaining a private copy of pthreads4w, which is one of those libraries which uses one “.c” file and different definitions to output several variants of the library. One variant uses C++ exceptions to clean …

---

## [some question](https://discourse.cmake.org/t/some-question/2227)

<div class="topic-metadata">

**Author:** [@cuger\_k](https://discourse.cmake.org/u/cuger_k)\
**Replies:** 1\
**Last updated:** [November 25, 2020, 5:25pm UTC](https://discourse.cmake.org/t/some-question/2227 "2020-11-25T17:25:57Z")

</div>

When I run the example, an error appears in the figure. Does anyone know what happened?

---

## [\-Wno-inconsistent-missing-overide - from unknown source](https://discourse.cmake.org/t/wno-inconsistent-missing-overide-from-unknown-source/2215)

<div class="topic-metadata">

**Author:** [@Jeremy\_Ardley](https://discourse.cmake.org/u/Jeremy_Ardley)\
**Replies:** 3\
**Last updated:** [November 25, 2020, 5:20pm UTC](https://discourse.cmake.org/t/wno-inconsistent-missing-overide-from-unknown-source/2215 "2020-11-25T17:20:31Z")

</div>

I am attempting to compile package opencv-4.5.0 on an Armbian (Debian Buster) system. I can compile this package no issues on another arm based system under Raspberry Pi OS. I am using gcc 8.3.0-6 and cmake 3.13.4 Th…

---

## [Automatic call of cleandead ninja tool](https://discourse.cmake.org/t/automatic-call-of-cleandead-ninja-tool/2180)

<div class="topic-metadata">

**Author:** [@trmagma](https://discourse.cmake.org/u/trmagma)\
**Replies:** 4\
**Last updated:** [November 25, 2020, 5:07pm UTC](https://discourse.cmake.org/t/automatic-call-of-cleandead-ninja-tool/2180 "2020-11-25T17:07:04Z")

</div>

Hello, we have some problems with the automatic call of the “cleandead” tool of ninja. If a target file to be removed is read-only (which might be required), ninja failed to delete the file. This results that the cmake-…

---

## [Generic CMAKE\_SYSTEM\_NAME](https://discourse.cmake.org/t/generic-cmake-system-name/1126)

<div class="topic-metadata">

**Author:** [@developer](https://discourse.cmake.org/u/developer)\
**Replies:** 4\
**Last updated:** [November 25, 2020, 4:48pm UTC](https://discourse.cmake.org/t/generic-cmake-system-name/1126 "2020-11-25T16:48:51Z")

</div>

Is the CMAKE\_SYSTEM\_NAME “Generic” documented somewhere in the new documentation location? I can only find it described in the old location (https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/CrossCompiling)

---

## [What targets/files does a specific component install?](https://discourse.cmake.org/t/what-targets-files-does-a-specific-component-install/2125)

<div class="topic-metadata">

**Author:** [@dbahadir](https://discourse.cmake.org/u/dbahadir)\
**Replies:** 1\
**Last updated:** [November 25, 2020, 4:42pm UTC](https://discourse.cmake.org/t/what-targets-files-does-a-specific-component-install/2125 "2020-11-25T16:42:45Z")

</div>

Background and question In my CMake project I am installing some built libraries and other files, all associated with several components (using the install(... COMPONENT ...) syntax). I then want to create (Debian) pack…

---

## [How to determine whether the generation of the project build system is being run in trace mode?](https://discourse.cmake.org/t/how-to-determine-whether-the-generation-of-the-project-build-system-is-being-run-in-trace-mode/2100)

<div class="topic-metadata">

**Author:** [@Shane\_Dev](https://discourse.cmake.org/u/Shane_Dev)\
**Replies:** 1\
**Last updated:** [November 25, 2020, 4:35pm UTC](https://discourse.cmake.org/t/how-to-determine-whether-the-generation-of-the-project-build-system-is-being-run-in-trace-mode/2100 "2020-11-25T16:35:26Z")

</div>

Hello, Is possible to determine whether the generation of the project build system is being run in trace mode (from within the called script)? For example, can the script determine which command line options were passe…

---

## [CMAKE\_SYSTEM\_INCLUDE\_PATH - has just one path, for X11?](https://discourse.cmake.org/t/cmake-system-include-path-has-just-one-path-for-x11/2060)

<div class="topic-metadata">

**Author:** [@tomoreilly](https://discourse.cmake.org/u/tomoreilly)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 12:24pm UTC](https://discourse.cmake.org/t/cmake-system-include-path-has-just-one-path-for-x11/2060 "2020-11-25T12:24:09Z")

</div>

Running on Ubuntu 18.04, cmake version 3.18.0-rc2. From documentation I expect CMAKE\_SYSTEM\_INCLUDE\_PATH to hold a list of directories including /usr/include, /usr/local/include, etc. : Semicolon-separated list of direc…

---

## [Clang-cl and CMAKE\_WINDOWS\_EXPORT\_ALL\_SYMBOLS](https://discourse.cmake.org/t/clang-cl-and-cmake-windows-export-all-symbols/2009)

<div class="topic-metadata">

**Author:** [@Horyu](https://discourse.cmake.org/u/Horyu)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 12:22pm UTC](https://discourse.cmake.org/t/clang-cl-and-cmake-windows-export-all-symbols/2009 "2020-11-25T12:22:00Z")

</div>

Hi, I’m building cross-compiled apps for Windows under Linux. I use the openssl-cmake project to build openssl, it works fine to build static libraries, but when tryiing to build shared libraries, it exports the CMake …

---

## [CMAKE\_BUILD\_TYPE IGNORED](https://discourse.cmake.org/t/cmake-build-type-ignored/2230)

<div class="topic-metadata">

**Author:** [@mcandre](https://discourse.cmake.org/u/mcandre)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 12:15pm UTC](https://discourse.cmake.org/t/cmake-build-type-ignored/2230 "2020-11-25T12:15:14Z")

</div>

A few UX notes about build types Why not default to Release type, for both cmake and ctest? Let’s have the simple project case be the easiest to implement! ctest and cmake should accept the same CLI flags for overridin…

---

## [CMake 3.19 - check\_c\_compiler\_flag doesn't support CMAKE\_REQUIRED\_FLAGS](https://discourse.cmake.org/t/cmake-3-19-check-c-compiler-flag-doesnt-support-cmake-required-flags/2233)

<div class="topic-metadata">

**Author:** [@galak](https://discourse.cmake.org/u/galak)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 12:08pm UTC](https://discourse.cmake.org/t/cmake-3-19-check-c-compiler-flag-doesnt-support-cmake-required-flags/2233 "2020-11-25T12:08:26Z")

</div>

It seems that with 3.19, check\_c\_compiler\_flag no longer respects CMAKE\_REQUIRED\_FLAGS. check\_c\_compiler\_flag -\> cmake\_check\_compiler\_flag It looks like there are two implementations of cmake\_check\_compiler\_flag one in…

---

## [Question about CMAKE\_CXX\_ABI\_COMPILED Flag Variable](https://discourse.cmake.org/t/question-about-cmake-cxx-abi-compiled-flag-variable/1976)

<div class="topic-metadata">

**Author:** [@marchani](https://discourse.cmake.org/u/marchani)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 12:06pm UTC](https://discourse.cmake.org/t/question-about-cmake-cxx-abi-compiled-flag-variable/1976 "2020-11-25T12:06:05Z")

</div>

I am attempting to cross-compile gRPC (https://github.com/grpc/grpc) from Windows to Linux as a third-party dependency using CMake and the Clang compiler, and I am also attempting to link to a pre-compiled version of lib…

---

## [Building Lib file from asm - cmake bug?](https://discourse.cmake.org/t/building-lib-file-from-asm-cmake-bug/1959)

<div class="topic-metadata">

**Author:** [@anrose00](https://discourse.cmake.org/u/anrose00)\
**Replies:** 3\
**Last updated:** [November 25, 2020, 12:03pm UTC](https://discourse.cmake.org/t/building-lib-file-from-asm-cmake-bug/1959 "2020-11-25T12:03:39Z")

</div>

Hello! I’m trying to convert a larger project to cmake. It consists or various C and ASM files. I was trying to create a static library containing the functions provided by the ASM files and then linking this static li…

---

## [find\_file() not resolving relative paths correctly (?)](https://discourse.cmake.org/t/find-file-not-resolving-relative-paths-correctly/1984)

<div class="topic-metadata">

**Author:** [@DaveR](https://discourse.cmake.org/u/DaveR)\
**Replies:** 5\
**Last updated:** [November 25, 2020, 11:44am UTC](https://discourse.cmake.org/t/find-file-not-resolving-relative-paths-correctly/1984 "2020-11-25T11:44:47Z")

</div>

Hi, I’m using find\_file to try to locate where builtin compiler library (in this case tsan.so) is located. I’m doing this by first parsing the output of try\_compile(... -print-search-dirs) to extract the list of paths, …

---

## [Mechanisms for grouping targets, labels or otherwise?](https://discourse.cmake.org/t/mechanisms-for-grouping-targets-labels-or-otherwise/1941)

<div class="topic-metadata">

**Author:** [@mikepurvis](https://discourse.cmake.org/u/mikepurvis)\
**Replies:** 3\
**Last updated:** [November 25, 2020, 3:57am UTC](https://discourse.cmake.org/t/mechanisms-for-grouping-targets-labels-or-otherwise/1941 "2020-11-25T03:57:42Z")

</div>

Greetings CMake users— I’m a long-time CMake user via the ROS (Robot Operating System) community. It’s been interesting to watch over time as certain features which were initially implemented in the ROS 1 buildsystem are…

---

## [Incorrect CUDA Architecture detection](https://discourse.cmake.org/t/incorrect-cuda-architecture-detection/2018)

<div class="topic-metadata">

**Author:** [@Microno95](https://discourse.cmake.org/u/Microno95)\
**Replies:** 3\
**Last updated:** [November 25, 2020, 12:22am UTC](https://discourse.cmake.org/t/incorrect-cuda-architecture-detection/2018 "2020-11-25T00:22:11Z")

</div>

So I’ve been trying to generate the cmake project for Mitsuba 2 on Windows 10 (build: 19041.572) using the Visual Studio 16 2019 generator and x64 toolchain. This is a project that requires CUDA and thus for the archite…

---

## [CUDA and CXX compiler - how to distinguish?](https://discourse.cmake.org/t/cuda-and-cxx-compiler-how-to-distinguish/1990)

<div class="topic-metadata">

**Author:** [@hkhauke](https://discourse.cmake.org/u/hkhauke)\
**Replies:** 3\
**Last updated:** [November 25, 2020, 12:00am UTC](https://discourse.cmake.org/t/cuda-and-cxx-compiler-how-to-distinguish/1990 "2020-11-25T00:00:29Z")

</div>

Hi, I use the latest options to integrate CUDA and CPP code in one library by setting enable\_language(CUDA). In my project, I apply typical options supported by CMAKE such as POSITION\_INDEPENDENT\_CODE which is nicely in…

---

## [How to collect and export usage-requirements of dependencies?](https://discourse.cmake.org/t/how-to-collect-and-export-usage-requirements-of-dependencies/1973)

<div class="topic-metadata">

**Author:** [@dbahadir](https://discourse.cmake.org/u/dbahadir)\
**Replies:** 1\
**Last updated:** [November 24, 2020, 11:55pm UTC](https://discourse.cmake.org/t/how-to-collect-and-export-usage-requirements-of-dependencies/1973 "2020-11-24T23:55:14Z")

</div>

Hi everyone, I am currently writing a CMakeLists.txt and am trying to export a single target from it that shall carry all its usage-requirements, even the indirectly inherited ones, without the need to also export its (…

---

## [Nsight-not-hitting-breakpoint-in-cmake-project](https://discourse.cmake.org/t/nsight-not-hitting-breakpoint-in-cmake-project/1964)

<div class="topic-metadata">

**Author:** [@Vahdaneh](https://discourse.cmake.org/u/Vahdaneh)\
**Replies:** 1\
**Last updated:** [November 24, 2020, 11:51pm UTC](https://discourse.cmake.org/t/nsight-not-hitting-breakpoint-in-cmake-project/1964 "2020-11-24T23:51:38Z")

</div>

Hello, I am trying to run one of the cuda\_sample files (V.11) by using CMake. However, GPU breakpoints are not working for me with CMake 3.18/VS2017/Nsight 2020.1. In my CMakeLists.txt, I use set(CUDA\_NVCC\_FLAGS\_DEBUG …

---

## [Problem with TI-C compiler](https://discourse.cmake.org/t/problem-with-ti-c-compiler/1943)

<div class="topic-metadata">

**Author:** [@AryKno](https://discourse.cmake.org/u/AryKno)\
**Replies:** 1\
**Last updated:** [November 24, 2020, 11:44pm UTC](https://discourse.cmake.org/t/problem-with-ti-c-compiler/1943 "2020-11-24T23:44:06Z")

</div>

Hello ! I am trying to build an executable with the TI-C compiler (TI v20.2.2.LTS precisely) to cross-compile for an ARM microcontroller. The compiler step is working properly, all the object files are generated. At t…

---

## [Debugging Targets Added](https://discourse.cmake.org/t/debugging-targets-added/1843)

<div class="topic-metadata">

**Author:** [@Some\_Guy](https://discourse.cmake.org/u/Some_Guy)\
**Replies:** 1\
**Last updated:** [November 24, 2020, 11:24pm UTC](https://discourse.cmake.org/t/debugging-targets-added/1843 "2020-11-24T23:24:52Z")

</div>

I am new to CMAKE and I have added a third party library, glfw. It compiles using ExternalProject\_Add. This ExternalProject\_Add apparently calls the CMake code for glfw and adds a new target to which I can link, but I on…

---

## [CMake 3.19.1 available for download](https://discourse.cmake.org/t/cmake-3-19-1-available-for-download/2228)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [November 24, 2020, 7:14pm UTC](https://discourse.cmake.org/t/cmake-3-19-1-available-for-download/2228 "2020-11-24T19:14:49Z")

</div>

We are pleased to announce that CMake 3.19.1 is now available for download. Please use the latest release from our download page: https://cmake.org/download/ Thanks for your support! Changes in 3.19.1 since 3.19.0: …

---

## [How to compile cmake on linux server?](https://discourse.cmake.org/t/how-to-compile-cmake-on-linux-server/2188)

<div class="topic-metadata">

**Author:** [@Ashish\_K](https://discourse.cmake.org/u/Ashish_K)\
**Replies:** 17\
**Last updated:** [November 24, 2020, 3:08pm UTC](https://discourse.cmake.org/t/how-to-compile-cmake-on-linux-server/2188 "2020-11-24T15:08:54Z")

</div>

I want to compile cmake in my working folder on one of the super computing facility. I am not sure how to compile it in my working directory. Can anyone please help me in this regard? – Ashish

---

## [\[cxx feature check\] what satisfies GNU\_POSIX\_REGEX | POSIX\_REGEX?](https://discourse.cmake.org/t/cxx-feature-check-what-satisfies-gnu-posix-regex-posix-regex/2218)

<div class="topic-metadata">

**Author:** [@\_0.z](https://discourse.cmake.org/u/_0.z)\
**Replies:** 2\
**Last updated:** [November 23, 2020, 4:06pm UTC](https://discourse.cmake.org/t/cxx-feature-check-what-satisfies-gnu-posix-regex-posix-regex/2218 "2020-11-23T16:06:14Z")

</div>

trying to compile llvm 11 from source with cmake 3.19, former pulling in Google’s benchmarking https://github.com/google/benchmark/blob/master/CMakeLists.txt#L263 which tests for GNU\_POSIX\_REGEX POSIX\_REGEX and the te…

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

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