# Latest

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

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

**Page:** 199

---

## [Problem installing cmake-3.17.2 on Window 10](https://discourse.cmake.org/t/problem-installing-cmake-3-17-2-on-window-10/1146)

<div class="topic-metadata">

**Author:** [@Guido\_Tuberoni](https://discourse.cmake.org/u/Guido_Tuberoni)\
**Replies:** 1\
**Last updated:** [May 5, 2020, 11:38am UTC](https://discourse.cmake.org/t/problem-installing-cmake-3-17-2-on-window-10/1146 "2020-05-05T11:38:07Z")

</div>

Windows Defender finds a threat in msi installer downloaded from cmake.org . win32/Hadsruda!rfn - Is it a false positive or What else? Tanks in advance.

---

## [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…

---

## [The 'cmake-server(7)' is deprecated](https://discourse.cmake.org/t/the-cmake-server-7-is-deprecated/1129)

<div class="topic-metadata">

**Author:** [@Kimare\_De\_Kostu](https://discourse.cmake.org/u/Kimare_De_Kostu)\
**Replies:** 7\
**Last updated:** [May 4, 2020, 2:37pm UTC](https://discourse.cmake.org/t/the-cmake-server-7-is-deprecated/1129 "2020-05-04T14:37:12Z")

</div>

Hello i got problem with cmake server i got something like this: 1\> Configuring incomplete, errors occurred! See also “C:/Users/kryst/OneDrive/Pulpit/va/out/build/x64-Debug/CMakeFiles/CMakeOutput.log”. 1\> CMake Depre…

---

## [Set Definitions for external sub directory](https://discourse.cmake.org/t/set-definitions-for-external-sub-directory/1136)

<div class="topic-metadata">

**Author:** [@developer](https://discourse.cmake.org/u/developer)\
**Replies:** 7\
**Last updated:** [May 4, 2020, 1:12pm UTC](https://discourse.cmake.org/t/set-definitions-for-external-sub-directory/1136 "2020-05-04T13:12:05Z")

</div>

I am adding google test to my project as a sub directory. Is there a better way to add defines to just that subdirectory rather than… add\_definitions(-DGTEST\_HAS\_PTHREAD=0) add\_subdirectory(googletest) remove\_definition…

---

## [FindJNI and libjsig](https://discourse.cmake.org/t/findjni-and-libjsig/1070)

<div class="topic-metadata">

**Author:** [@Joe\_Burzinski](https://discourse.cmake.org/u/Joe_Burzinski)\
**Replies:** 2\
**Last updated:** [May 1, 2020, 2:46pm UTC](https://discourse.cmake.org/t/findjni-and-libjsig/1070 "2020-05-01T14:46:27Z")

</div>

How come the FindJNI module doesn’t expose libjsig for linking? libjsig is needed if any other part of the program overrides the signal handlers for SIGSEGV and a couple others. See https://docs.oracle.com/javase/8/docs/…

---

## [add\_compile\_options append factorisation.](https://discourse.cmake.org/t/add-compile-options-append-factorisation/1133)

<div class="topic-metadata">

**Author:** [@Phi](https://discourse.cmake.org/u/Phi)\
**Replies:** 2\
**Last updated:** [May 1, 2020, 9:02am UTC](https://discourse.cmake.org/t/add-compile-options-append-factorisation/1133 "2020-05-01T09:02:07Z")

</div>

Hi All, I am new to cmake, so may be this is a trivial question. I am trying to use add\_compile\_options() and I got the impression that compile options gets kind fatorised, i.e multiple -v -v would end up as a single -…

---

## [Possible to create a Python virtual env from CMake and then find it with FindPython3?](https://discourse.cmake.org/t/possible-to-create-a-python-virtual-env-from-cmake-and-then-find-it-with-findpython3/1132)

<div class="topic-metadata">

**Author:** [@alex](https://discourse.cmake.org/u/alex)\
**Replies:** 1\
**Last updated:** [May 1, 2020, 9:00am UTC](https://discourse.cmake.org/t/possible-to-create-a-python-virtual-env-from-cmake-and-then-find-it-with-findpython3/1132 "2020-05-01T09:00:21Z")

</div>

It’s basically all in the title. My project ships with a requirements.txt that lists a set of dependencies that need to be present to test the bindings to the C++ library I’m building. I would like to be able to perform…

---

## [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 …

---

## [Configurable in CMAKE\_TOOLCHAIN\_FILE files](https://discourse.cmake.org/t/configurable-in-cmake-toolchain-file-files/1122)

<div class="topic-metadata">

**Author:** [@Guru\_Gajah](https://discourse.cmake.org/u/Guru_Gajah)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 9:20pm UTC](https://discourse.cmake.org/t/configurable-in-cmake-toolchain-file-files/1122 "2020-04-30T21:20:54Z")

</div>

Consider having constructs like the following i a CMAKE\_TOOLCHAIN\_FILE: set(SOME\_VAR “some\_default” CACHE STRING “some text”) What would be the drawback pitfall with it? Will cache always work? ccmake? Would option p…

---

## [How to share common cmake properties between exes?](https://discourse.cmake.org/t/how-to-share-common-cmake-properties-between-exes/1120)

<div class="topic-metadata">

**Author:** [@Greg](https://discourse.cmake.org/u/Greg)\
**Replies:** 7\
**Last updated:** [April 30, 2020, 12:26am UTC](https://discourse.cmake.org/t/how-to-share-common-cmake-properties-between-exes/1120 "2020-04-30T00:26:58Z")

</div>

My project is not large, but we do build about 100 executables. These executables come in a handful of different types: daemons, tools, tests, filters, etc. Usually, all the executable targets of a certain type share …

---

## [project(..), cmake\_minimum\_required(..)](https://discourse.cmake.org/t/project-cmake-minimum-required/953)

<div class="topic-metadata">

**Author:** [@Guru\_Gajah](https://discourse.cmake.org/u/Guru_Gajah)\
**Replies:** 2\
**Last updated:** [April 29, 2020, 3:40pm UTC](https://discourse.cmake.org/t/project-cmake-minimum-required/953 "2020-04-29T15:40:43Z")

</div>

Hello, I’m concerned about cmake version-race and project maintainability especially in deeply embedded project. I have inherited certain habits/practices since cmake 2.6 which I’m reluctant to change. One of the reaso…

---

## [Cmake 3.17 Visual Studio 2015 x64 MinGW64 fortran compilation issues](https://discourse.cmake.org/t/cmake-3-17-visual-studio-2015-x64-mingw64-fortran-compilation-issues/1076)

<div class="topic-metadata">

**Author:** [@elm](https://discourse.cmake.org/u/elm)\
**Replies:** 3\
**Last updated:** [April 28, 2020, 2:37pm UTC](https://discourse.cmake.org/t/cmake-3-17-visual-studio-2015-x64-mingw64-fortran-compilation-issues/1076 "2020-04-28T14:37:05Z")

</div>

Good day, I have a mixed C++/Fortran Project I am trying to compile on Windows 10 (latest update) with the latest version of cmake and running into an issue related to the fortran compilation. Note that I have MINGW64 …

---

## [No verbose output when building an external project with ninja](https://discourse.cmake.org/t/no-verbose-output-when-building-an-external-project-with-ninja/1113)

<div class="topic-metadata">

**Author:** [@Sunpip](https://discourse.cmake.org/u/Sunpip)\
**Replies:** 1\
**Last updated:** [April 28, 2020, 1:11pm UTC](https://discourse.cmake.org/t/no-verbose-output-when-building-an-external-project-with-ninja/1113 "2020-04-28T13:11:59Z")

</div>

This is my example project: CMakeLists.txt a.cpp main.cpp And this is CMakeLists.txt file. It contains two local source files and an external project GTest from a git repository: cmake\_minimum\_required(VERSION 3.16…

---

## [Make CMake error give the full path to the faulty CMakeLists.txt](https://discourse.cmake.org/t/make-cmake-error-give-the-full-path-to-the-faulty-cmakelists-txt/1072)

<div class="topic-metadata">

**Author:** [@developer](https://discourse.cmake.org/u/developer)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 12:44pm UTC](https://discourse.cmake.org/t/make-cmake-error-give-the-full-path-to-the-faulty-cmakelists-txt/1072 "2020-04-28T12:44:00Z")

</div>

Given a simple structure: - project --- CMakeLists.txt --- lib --- --- CMakeLists.txt The top level CMakeLists.txt file just does an add\_subdirectory(lib). If the lib CMakeLists.txt file is faulty, an error like the fo…

---

## [Issue using CMake with CodeBlocks and MSYS](https://discourse.cmake.org/t/issue-using-cmake-with-codeblocks-and-msys/1090)

<div class="topic-metadata">

**Author:** [@Arisotura](https://discourse.cmake.org/u/Arisotura)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 12:21pm UTC](https://discourse.cmake.org/t/issue-using-cmake-with-codeblocks-and-msys/1090 "2020-04-28T12:21:40Z")

</div>

Hello there! Arisotura here, from melonDS land. So, here’s the thing. When I started development on melonDS, I used CodeBlocks as my IDE, along with the msys64 toolchain. The idea was to avoid using MSVC, and also keep …

---

## [Professional CMake: A Practical Guide 6th Edition](https://discourse.cmake.org/t/professional-cmake-a-practical-guide-6th-edition/1114)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 0\
**Last updated:** [April 28, 2020, 11:31am UTC](https://discourse.cmake.org/t/professional-cmake-a-practical-guide-6th-edition/1114 "2020-04-28T11:31:06Z")

</div>

The new edition of the book Professional CMake: A Practical Guide is now available. It has been updated for the CMake 3.17 release and once again includes a substantial amount of new material. Major highlights for this…

---

## [Find WindowsSDK library (SetupApi)](https://discourse.cmake.org/t/find-windowssdk-library-setupapi/906)

<div class="topic-metadata">

**Author:** [@zakalawe](https://discourse.cmake.org/u/zakalawe)\
**Replies:** 2\
**Last updated:** [April 28, 2020, 7:32am UTC](https://discourse.cmake.org/t/find-windowssdk-library-setupapi/906 "2020-04-28T07:32:25Z")

</div>

Is there an official way to ensure that the active Windows SDK library path is searched by find\_library()? I can find via Google various 3rdparty CMake files, but hoped there might be a recommend best practice? Eg on my…

---

## [Prefix for CTest ?](https://discourse.cmake.org/t/prefix-for-ctest/1081)

<div class="topic-metadata">

**Author:** [@robiwano](https://discourse.cmake.org/u/robiwano)\
**Replies:** 1\
**Last updated:** [April 27, 2020, 1:52pm UTC](https://discourse.cmake.org/t/prefix-for-ctest/1081 "2020-04-27T13:52:43Z")

</div>

Hi all, I’m trying to make a test cache script which will cache outputs of tests and return the cached values if nothing has changed. Question: Is it possible to prefix the “test executable” in the same manner as with C…

---

## [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…

---

## [How to set warning level correctly in modern CMake?](https://discourse.cmake.org/t/how-to-set-warning-level-correctly-in-modern-cmake/1103)

<div class="topic-metadata">

**Author:** [@Resurr3ction](https://discourse.cmake.org/u/Resurr3ction)\
**Replies:** 2\
**Last updated:** [April 26, 2020, 5:19am UTC](https://discourse.cmake.org/t/how-to-set-warning-level-correctly-in-modern-cmake/1103 "2020-04-26T05:19:27Z")

</div>

I believe this is a simple question about some of the most basic of requirements - setting a warning level. Yet I cannot find anything half sane about how to actually achieve this. The common suggestion is: if (MSVC) …

---

## [CMake Error at cmake\_uninstall.cmake:17 (message): Problem when removing "/usr/local/doc/cmake-3.17/Copyright.txt"](https://discourse.cmake.org/t/cmake-error-at-cmake-uninstall-cmake-17-message-problem-when-removing-usr-local-doc-cmake-3-17-copyright-txt/1105)

<div class="topic-metadata">

**Author:** [@111](https://discourse.cmake.org/u/111)\
**Replies:** 0\
**Last updated:** [April 26, 2020, 2:33am UTC](https://discourse.cmake.org/t/cmake-error-at-cmake-uninstall-cmake-17-message-problem-when-removing-usr-local-doc-cmake-3-17-copyright-txt/1105 "2020-04-26T02:33:50Z")

</div>

hello,when i use \[sudo make install \]to install cmake itself, once i want remove it use\[sudo make uninstall \] it output a error (base) lzw@resplendent-star:~/3d\_lib/cmake-3.17.1$ sudo make uninstall Scanning depende…

---

## [cmake pybind11 cannot create target because another target with the same name already exists, how to bypass?](https://discourse.cmake.org/t/cmake-pybind11-cannot-create-target-because-another-target-with-the-same-name-already-exists-how-to-bypass/1097)

<div class="topic-metadata">

**Author:** [@ragnarokas](https://discourse.cmake.org/u/ragnarokas)\
**Replies:** 6\
**Last updated:** [April 25, 2020, 2:56pm UTC](https://discourse.cmake.org/t/cmake-pybind11-cannot-create-target-because-another-target-with-the-same-name-already-exists-how-to-bypass/1097 "2020-04-25T14:56:06Z")

</div>

Hello, I have the code, which cmakelists.txt looks like: \> cmake\_minimum\_required(VERSION 3.14) \> project(grapoli\_lap) \> set(CMAKE\_CXX\_STANDARD 17) \> \> set(SOURCE\_FILES \> unit\_test/geometry/monomer\_test.cpp \> …

---

## [Include directories not working in header files](https://discourse.cmake.org/t/include-directories-not-working-in-header-files/1086)

<div class="topic-metadata">

**Author:** [@123099](https://discourse.cmake.org/u/123099)\
**Replies:** 0\
**Last updated:** [April 23, 2020, 11:37pm UTC](https://discourse.cmake.org/t/include-directories-not-working-in-header-files/1086 "2020-04-23T23:37:06Z")

</div>

Hello, I have very little experience with CMake and I am trying to set up a simple library. The library depends on other external libraries and adds them using the add\_subdirectory and target\_link\_library commands. Ev…

---

## [FindOctave.cmake in CMake Community Wiki broken for Octave 5](https://discourse.cmake.org/t/findoctave-cmake-in-cmake-community-wiki-broken-for-octave-5/1079)

<div class="topic-metadata">

**Author:** [@traversaro](https://discourse.cmake.org/u/traversaro)\
**Replies:** 2\
**Last updated:** [April 23, 2020, 10:50am UTC](https://discourse.cmake.org/t/findoctave-cmake-in-cmake-community-wiki-broken-for-octave-5/1079 "2020-04-23T10:50:00Z")

</div>

Hi everyone, I am not sure this is the right place were to discuss this, but given that the CMake Wiki is listed under “Community” in GitLab, this is my best guess. We recently discovered that the FindOctave.cmake is b…

---

## [CUDA aarch64 cross compile fails to validate nvcc](https://discourse.cmake.org/t/cuda-aarch64-cross-compile-fails-to-validate-nvcc/593)

<div class="topic-metadata">

**Author:** [@DKB](https://discourse.cmake.org/u/DKB)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 9:34pm UTC](https://discourse.cmake.org/t/cuda-aarch64-cross-compile-fails-to-validate-nvcc/593 "2020-04-22T21:34:21Z")

</div>

I’m attempting to use a toolchain file to cross-compile from Linux x86\_64 to aarch64. set(CMAKE\_SYSTEM\_NAME Linux) set(CMAKE\_SYSTEM\_PROCESSOR aarch64) set(CMAKE\_TOOLS\_PREFIX ${CMAKE\_SYSTEM\_PROCESSOR}-linux-gnu- CACHE S…

---

## [\[announce\] cninja-2.0 ready to test](https://discourse.cmake.org/t/announce-cninja-2-0-ready-to-test/1074)

<div class="topic-metadata">

**Author:** [@jcelerier](https://discourse.cmake.org/u/jcelerier)\
**Replies:** 0\
**Last updated:** [April 22, 2020, 5:31pm UTC](https://discourse.cmake.org/t/announce-cninja-2-0-ready-to-test/1074 "2020-04-22T17:31:47Z")

</div>

Hello, posting here to present a project I’ve started last week and which may be of interest to CMake userbase, called cninja. It is a concatenative configuration / toolchain file generator for CMake and tries to solve…

---

## [Override CMAKE\_CXX\_STANDARD at target level.](https://discourse.cmake.org/t/override-cmake-cxx-standard-at-target-level/1068)

<div class="topic-metadata">

**Author:** [@developer](https://discourse.cmake.org/u/developer)\
**Replies:** 4\
**Last updated:** [April 21, 2020, 9:09pm UTC](https://discourse.cmake.org/t/override-cmake-cxx-standard-at-target-level/1068 "2020-04-21T21:09:25Z")

</div>

I have a top level project that sets the standard to 14, set(CMAKE\_CXX\_STANDARD 14). I have a target below (that is included via add\_subdirectory) that links to an external library that requires the -std=gnu++1y flag to…

---

## [CPack DEB generator is following symlinks of directories](https://discourse.cmake.org/t/cpack-deb-generator-is-following-symlinks-of-directories/1045)

<div class="topic-metadata">

**Author:** [@DKLind](https://discourse.cmake.org/u/DKLind)\
**Replies:** 8\
**Last updated:** [April 21, 2020, 5:19pm UTC](https://discourse.cmake.org/t/cpack-deb-generator-is-following-symlinks-of-directories/1045 "2020-04-21T17:19:26Z")

</div>

The following link indicates this issue was fixed: https://gitlab.kitware.com/cmake/cmake/issues/19448 But, for me it still remains with CMake v3.15.7. The following code illustrates the issue: install(CODE " EXEC…

---

## [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…

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

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