# Latest

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

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

**Page:** 197

---

## [Dependency Management via CPack and dpkg-shlipdeps](https://discourse.cmake.org/t/dependency-management-via-cpack-and-dpkg-shlipdeps/1282)

<div class="topic-metadata">

**Author:** [@MRocholl](https://discourse.cmake.org/u/MRocholl)\
**Replies:** 0\
**Last updated:** [May 28, 2020, 2:25pm UTC](https://discourse.cmake.org/t/dependency-management-via-cpack-and-dpkg-shlipdeps/1282 "2020-05-28T14:25:49Z")

</div>

Hello, I am trying to package several cpp libraries as DEB packages that depend on each other. E.g. I have libA that depends on libB(\>=2.0.0), libB does not depend on any other library. Lib B is a package of its own …

---

## [CMake for (wx)python project(s)](https://discourse.cmake.org/t/cmake-for-wx-python-project-s/1261)

<div class="topic-metadata">

**Author:** [@gour](https://discourse.cmake.org/u/gour)\
**Replies:** 4\
**Last updated:** [May 29, 2020, 7:56am UTC](https://discourse.cmake.org/t/cmake-for-wx-python-project-s/1261 "2020-05-29T07:56:48Z")

</div>

Hello, I’m about to start working on open-source desktop app using (wx)python. I need to bind 3rd party C library using cffi/cython, possibly use Nuitka python compiler, would like to to provide manual in html/epub/pdf …

---

## [MACRO\_UTILS\_INC\_FOLDER Location?](https://discourse.cmake.org/t/macro-utils-inc-folder-location/1291)

<div class="topic-metadata">

**Author:** [@Grant\_Anderson](https://discourse.cmake.org/u/Grant_Anderson)\
**Replies:** 0\
**Last updated:** [May 29, 2020, 4:58am UTC](https://discourse.cmake.org/t/macro-utils-inc-folder-location/1291 "2020-05-29T04:58:27Z")

</div>

I have Microsoft Azure IoT SKDs project, compiled with VS2017. I run command-line cmake -G “Eclipse CDT4 - Unix Makefiles” to generate makefiles tree The generated makefile fails to resolve MACRO\_UTILS\_INC\_FOLDER and UM…

---

## [CTest Script Mode ( -S ) and return codes](https://discourse.cmake.org/t/ctest-script-mode-s-and-return-codes/1286)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 4\
**Last updated:** [May 28, 2020, 10:28pm UTC](https://discourse.cmake.org/t/ctest-script-mode-s-and-return-codes/1286 "2020-05-28T22:28:59Z")

</div>

I wanted to start a discussion on CTest script mode, specifically return codes and how errors propagate silently up from the executed script. This discussion stems from the transition of numerous projects including CMak…

---

## [CMake 3.17.3 available for download](https://discourse.cmake.org/t/cmake-3-17-3-available-for-download/1280)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [May 28, 2020, 1:03pm UTC](https://discourse.cmake.org/t/cmake-3-17-3-available-for-download/1280 "2020-05-28T13:03:42Z")

</div>

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

---

## [set output directory for your binaries](https://discourse.cmake.org/t/set-output-directory-for-your-binaries/1278)

<div class="topic-metadata">

**Author:** [@hex](https://discourse.cmake.org/u/hex)\
**Replies:** 4\
**Last updated:** [May 28, 2020, 7:29am UTC](https://discourse.cmake.org/t/set-output-directory-for-your-binaries/1278 "2020-05-28T07:29:08Z")

</div>

I want to define the output path in which my binary is going to be created. It should reflect the behaviour of CMake build in functions. Variants which exist only for historical reasons are not being considered. here is…

---

## [target\_link\_libraries for lpthread, ldl, and lutils](https://discourse.cmake.org/t/target-link-libraries-for-lpthread-ldl-and-lutils/1235)

<div class="topic-metadata">

**Author:** [@albertchristianto](https://discourse.cmake.org/u/albertchristianto)\
**Replies:** 4\
**Last updated:** [May 28, 2020, 3:45am UTC](https://discourse.cmake.org/t/target-link-libraries-for-lpthread-ldl-and-lutils/1235 "2020-05-28T03:45:31Z")

</div>

Hello, i am new at using cmake for compiling and building c++ code. here is my CMakeLists.txt cmake\_minimum\_required(VERSION 3.0) project(example) add\_subdirectory(pybind11) find\_package( Threads REQUIRED ) #find\_pack…

---

## [CMake 3.16.7 available for download](https://discourse.cmake.org/t/cmake-3-16-7-available-for-download/1277)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [May 27, 2020, 3:06pm UTC](https://discourse.cmake.org/t/cmake-3-16-7-available-for-download/1277 "2020-05-27T15:06:27Z")

</div>

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

---

## [Why is defining an unsupported variable failing the build?](https://discourse.cmake.org/t/why-is-defining-an-unsupported-variable-failing-the-build/1269)

<div class="topic-metadata">

**Author:** [@dbahadir](https://discourse.cmake.org/u/dbahadir)\
**Replies:** 3\
**Last updated:** [May 26, 2020, 11:02am UTC](https://discourse.cmake.org/t/why-is-defining-an-unsupported-variable-failing-the-build/1269 "2020-05-26T11:02:21Z")

</div>

I read the idea of @craig.scott regarding the usage of CMAKE\_DEFAULT\_BUILD\_TYPE to indicate the default build type for different generators (and not only for the “Ninja Multi-Config” generator) here. I find it quite se…

---

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

---

## [Clang-tidy passing incorrect arguments on windows?](https://discourse.cmake.org/t/clang-tidy-passing-incorrect-arguments-on-windows/1123)

<div class="topic-metadata">

**Author:** [@anon45792294](https://discourse.cmake.org/u/anon45792294)\
**Replies:** 3\
**Last updated:** [May 23, 2020, 8:40pm UTC](https://discourse.cmake.org/t/clang-tidy-passing-incorrect-arguments-on-windows/1123 "2020-05-23T20:40:12Z")

</div>

I’m trying to use clang-tidy on windows using clang-cl. But I’m getting this error while trying to run clang-tidy: \>------ Build All started: Project: PitoEngine, Configuration: Debug\_x64 ------ \[1/14\] Building CXX o…

---

## [Toolchains: Multiple files generated by add\_executable](https://discourse.cmake.org/t/toolchains-multiple-files-generated-by-add-executable/1161)

<div class="topic-metadata">

**Author:** [@Lectem](https://discourse.cmake.org/u/Lectem)\
**Replies:** 9\
**Last updated:** [May 23, 2020, 2:55pm UTC](https://discourse.cmake.org/t/toolchains-multiple-files-generated-by-add-executable/1161 "2020-05-23T14:55:27Z")

</div>

Is it possible to tell cmake that the toolchain will generate multiple files for executables? I’m thinking more specifically about emscripten which (might, depending on compile flags) generate both .js and .wasm files f…

---

## [ExternalProject\_Add fails to extract kexec-tools-2.0.17.tar.xz](https://discourse.cmake.org/t/externalproject-add-fails-to-extract-kexec-tools-2-0-17-tar-xz/1251)

<div class="topic-metadata">

**Author:** [@DKLind](https://discourse.cmake.org/u/DKLind)\
**Replies:** 3\
**Last updated:** [May 23, 2020, 12:03pm UTC](https://discourse.cmake.org/t/externalproject-add-fails-to-extract-kexec-tools-2-0-17-tar-xz/1251 "2020-05-23T12:03:12Z")

</div>

I’m using ExternalProject\_Add with download parameters below: URL https://projects.horms.net/projects/kexec/kexec-tools/kexec-tools-2.0.17.tar.xz URL\_MD5 f72c11e3bd80de23cae144ce8683d96b I’m getting the following erro…

---

## [submit to CDash with excluding lines from coverage using GCOV\_EXCL\_LINE](https://discourse.cmake.org/t/submit-to-cdash-with-excluding-lines-from-coverage-using-gcov-excl-line/1259)

<div class="topic-metadata">

**Author:** [@Nikhil\_Reddy\_Ramolla](https://discourse.cmake.org/u/Nikhil_Reddy_Ramolla)\
**Replies:** 0\
**Last updated:** [May 23, 2020, 9:05am UTC](https://discourse.cmake.org/t/submit-to-cdash-with-excluding-lines-from-coverage-using-gcov-excl-line/1259 "2020-05-23T09:05:26Z")

</div>

Hello all, I am learning CMake by making a sample C++ project, and I have succesfully integrated it with CDash, with both tests (using boost unit test) and coverage (using --coverage and gcov). I am using this CTest Sc…

---

## [CMake Country or Origin](https://discourse.cmake.org/t/cmake-country-or-origin/1253)

<div class="topic-metadata">

**Author:** [@wyomoose](https://discourse.cmake.org/u/wyomoose)\
**Replies:** 2\
**Last updated:** [May 22, 2020, 9:10pm UTC](https://discourse.cmake.org/t/cmake-country-or-origin/1253 "2020-05-22T21:10:28Z")

</div>

We are currently using CMake. However in order to continue to use it on our system we have to show the country of origin of the software. From everything I can gather it is United States. Can anyone confirm that. Thanks …

---

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

---

## [CMake variables in CTest?](https://discourse.cmake.org/t/cmake-variables-in-ctest/1244)

<div class="topic-metadata">

**Author:** [@dbahadir](https://discourse.cmake.org/u/dbahadir)\
**Replies:** 3\
**Last updated:** [May 20, 2020, 5:21pm UTC](https://discourse.cmake.org/t/cmake-variables-in-ctest/1244 "2020-05-20T17:21:30Z")

</div>

I am currently playing around with generating CTest scripts and running these using ctest. In one of those scripts I wanted to create a directory and thought I would be nice and use a platform agnostic approach: execut…

---

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

---

## [how to find Qt for iOS?](https://discourse.cmake.org/t/how-to-find-qt-for-ios/1061)

<div class="topic-metadata">

**Author:** [@davemilter](https://discourse.cmake.org/u/davemilter)\
**Replies:** 1\
**Last updated:** [May 20, 2020, 8:35am UTC](https://discourse.cmake.org/t/how-to-find-qt-for-ios/1061 "2020-05-20T08:35:33Z")

</div>

I want to compile project (which uses Qt) for iOS on Mac OS . But cmake can not find Qt for iOS (the project compiled just fine for iOS on the same machine with qmake). Here is my CMakeLists.txt: cmake\_minimum\_requir…

---

## [PLATFORM\_ID vs. WIN32 vs. CMAKE\_SYSTEM\_NAME](https://discourse.cmake.org/t/platform-id-vs-win32-vs-cmake-system-name/1226)

<div class="topic-metadata">

**Author:** [@ocroquette](https://discourse.cmake.org/u/ocroquette)\
**Replies:** 2\
**Last updated:** [May 19, 2020, 9:55pm UTC](https://discourse.cmake.org/t/platform-id-vs-win32-vs-cmake-system-name/1226 "2020-05-19T21:55:25Z")

</div>

Hi, I am bit confused about which of PLATFORM\_ID vs. WIN32 vs. CMAKE\_SYSTEM\_NAME to use. My build system supports Windows and macOS, so it looks like: for normal branching in the CMake scripts, I have the choice betw…

---

## [Include PRIVATE generated headers dir under build tree in test execution from a source dir](https://discourse.cmake.org/t/include-private-generated-headers-dir-under-build-tree-in-test-execution-from-a-source-dir/1231)

<div class="topic-metadata">

**Author:** [@yisseamake](https://discourse.cmake.org/u/yisseamake)\
**Replies:** 1\
**Last updated:** [May 19, 2020, 1:45pm UTC](https://discourse.cmake.org/t/include-private-generated-headers-dir-under-build-tree-in-test-execution-from-a-source-dir/1231 "2020-05-19T13:45:55Z")

</div>

Could you please advise on the proper way to support test execution when test program includes generated file from the build tree without exposing generated file as PUBLIC. When library is built header files are generat…

---

## [How to force install into custom dir under project](https://discourse.cmake.org/t/how-to-force-install-into-custom-dir-under-project/1209)

<div class="topic-metadata">

**Author:** [@yisseamake](https://discourse.cmake.org/u/yisseamake)\
**Replies:** 2\
**Last updated:** [May 18, 2020, 6:39pm UTC](https://discourse.cmake.org/t/how-to-force-install-into-custom-dir-under-project/1209 "2020-05-18T18:39:46Z")

</div>

I have project structure with custom install dir under the project dir (build dir is at the same level as install dir) which I’d like to install to my librray (with library and public include objects). However I am getti…

---

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

---

## [Drive Letter Inconsistency on Windows between find\_path and IMPLICIT\_INCLUDE\_DIRECTORIES](https://discourse.cmake.org/t/drive-letter-inconsistency-on-windows-between-find-path-and-implicit-include-directories/1221)

<div class="topic-metadata">

**Author:** [@cgudrian](https://discourse.cmake.org/u/cgudrian)\
**Replies:** 4\
**Last updated:** [May 18, 2020, 12:06pm UTC](https://discourse.cmake.org/t/drive-letter-inconsistency-on-windows-between-find-path-and-implicit-include-directories/1221 "2020-05-18T12:06:27Z")

</div>

Hello! On Windows find\_path returns a path with a lowercase drive letter (e.g. “c:/cross-sdk/sysroots/target/usr/include”). The CMAKE\_\<LANG\>\_IMPLICIT\_INCLUDE\_DIRECTORIES variables however contain upper case drive letter…

---

## [Is CMAKE\_PREFIX\_PATH recursively searched?](https://discourse.cmake.org/t/is-cmake-prefix-path-recursively-searched/817)

<div class="topic-metadata">

**Author:** [@MathiasMagnus](https://discourse.cmake.org/u/MathiasMagnus)\
**Replies:** 9\
**Last updated:** [May 18, 2020, 8:13am UTC](https://discourse.cmake.org/t/is-cmake-prefix-path-recursively-searched/817 "2020-05-18T08:13:59Z")

</div>

Hi! I have a build where a system package config file is picked up even though it should not be. Having read the docs on what the config file search logic is, it could only possible find it if the search of \<prefix\> is …

---

## [How to specify different variable value for different build type for visual studio ?](https://discourse.cmake.org/t/how-to-specify-different-variable-value-for-different-build-type-for-visual-studio/1216)

<div class="topic-metadata">

**Author:** [@davied9](https://discourse.cmake.org/u/davied9)\
**Replies:** 6\
**Last updated:** [May 18, 2020, 6:57am UTC](https://discourse.cmake.org/t/how-to-specify-different-variable-value-for-different-build-type-for-visual-studio/1216 "2020-05-18T06:57:06Z")

</div>

I’m trying to generate a simple c++ project with cmake for visual studio. CMakeLists.txt cmake\_minimum\_required(VERSION 3.5.1) project(simple) get\_filename\_component(LIB\_PATH\_RELEASE ../release/lib ABSOLUTE) get\_filen…

---

## [CMakeNuGetTools](https://discourse.cmake.org/t/cmakenugettools/1228)

<div class="topic-metadata">

**Author:** [@katusk](https://discourse.cmake.org/u/katusk)\
**Replies:** 0\
**Last updated:** [May 17, 2020, 6:45pm UTC](https://discourse.cmake.org/t/cmakenugettools/1228 "2020-05-17T18:45:38Z")

</div>

CMakeNuGetTools: CMake functions for adding NuGet package dependencies with CMake exports or native .targets files, generating and merging .nuspec files, calling nuget pack, and more. WIP. Please let me know what you thi…

---

## [when to use include on core functions?](https://discourse.cmake.org/t/when-to-use-include-on-core-functions/1224)

<div class="topic-metadata">

**Author:** [@hex](https://discourse.cmake.org/u/hex)\
**Replies:** 1\
**Last updated:** [May 15, 2020, 10:33am UTC](https://discourse.cmake.org/t/when-to-use-include-on-core-functions/1224 "2020-05-15T10:33:05Z")

</div>

CMake offers some functions to use without any includes: project add\_executable … some other functions require an include before being used: add\_file\_dependencies. cmake\_print\_properties … is there any indication …

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

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