# Latest

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

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

**Page:** 194

---

## [cmake-gui Cygwin issues](https://discourse.cmake.org/t/cmake-gui-cygwin-issues/1530)

<div class="topic-metadata">

**Author:** [@clove](https://discourse.cmake.org/u/clove)\
**Replies:** 0\
**Last updated:** [July 10, 2020, 10:18am UTC](https://discourse.cmake.org/t/cmake-gui-cygwin-issues/1530 "2020-07-10T10:18:32Z")

</div>

I have been using cmake-gui on Cyqwin. The most recent binary is 3.14.5. The version prints a lot of error messages as follows.QXcbShmImage: shmget() failed (88: Function not implemented) for size 67392 (216x78) QXcb…

---

## [Having linker trouble with folly Library](https://discourse.cmake.org/t/having-linker-trouble-with-folly-library/1527)

<div class="topic-metadata">

**Author:** [@imlost](https://discourse.cmake.org/u/imlost)\
**Replies:** 1\
**Last updated:** [July 10, 2020, 7:39am UTC](https://discourse.cmake.org/t/having-linker-trouble-with-folly-library/1527 "2020-07-10T07:39:34Z")

</div>

Using VSPKG I obtained the folly library built statically (MT) but now I’m getting the following linker error below. Any suggestions on how to fix this error or what I may be missing from my cmakelists file? 1\>future\_be…

---

## [building/referencing a library](https://discourse.cmake.org/t/building-referencing-a-library/1446)

<div class="topic-metadata">

**Author:** [@mzimmers](https://discourse.cmake.org/u/mzimmers)\
**Replies:** 8\
**Last updated:** [July 8, 2020, 8:42pm UTC](https://discourse.cmake.org/t/building-referencing-a-library/1446 "2020-07-08T20:42:44Z")

</div>

Hi, all - Brand new to using CMake. I need to port an RTP library to a new platform (the Espressif ESP32). I pulled a copy of ortp from github. It depends on bctoolbox (from the same author), which in turn depends on m…

---

## [CPack: how to omit archive name from archived files' paths](https://discourse.cmake.org/t/cpack-how-to-omit-archive-name-from-archived-files-paths/1520)

<div class="topic-metadata">

**Author:** [@jwuttke](https://discourse.cmake.org/u/jwuttke)\
**Replies:** 1\
**Last updated:** [July 8, 2020, 9:48pm UTC](https://discourse.cmake.org/t/cpack-how-to-omit-archive-name-from-archived-files-paths/1520 "2020-07-08T21:48:00Z")

</div>

project(foo VERSION 0.1.1) install( TARGETS ${lib} LIBRARY DESTINATION lib RUNTIME DESTINATION lib ARCHIVE DESTINATION lib) set(CPACK\_GENERATOR "ZIP") include(CPack) generates foo-0.1.1-Linux,zip, which …

---

## [generating vcxproj that uses relative paths](https://discourse.cmake.org/t/generating-vcxproj-that-uses-relative-paths/1522)

<div class="topic-metadata">

**Author:** [@eri0](https://discourse.cmake.org/u/eri0)\
**Replies:** 1\
**Last updated:** [July 8, 2020, 8:04pm UTC](https://discourse.cmake.org/t/generating-vcxproj-that-uses-relative-paths/1522 "2020-07-08T20:04:34Z")

</div>

CMake can generate Visual Studio projects, which is great! However, it looks like they are not supposed to be included in the source code repository. Sometimes I need to cooperate with people who are not familiar with CM…

---

## [Generating input files for a test case](https://discourse.cmake.org/t/generating-input-files-for-a-test-case/1496)

<div class="topic-metadata">

**Author:** [@Holger](https://discourse.cmake.org/u/Holger)\
**Replies:** 3\
**Last updated:** [July 8, 2020, 6:42pm UTC](https://discourse.cmake.org/t/generating-input-files-for-a-test-case/1496 "2020-07-08T18:42:55Z")

</div>

Hi, I am writing a test case for which I need several input files. All of these files are fairly trivial, they just need to be there so that CMake actually generates something; so I think checking them in would not be a…

---

## [Google Test System Includes](https://discourse.cmake.org/t/google-test-system-includes/1230)

<div class="topic-metadata">

**Author:** [@developer](https://discourse.cmake.org/u/developer)\
**Replies:** 2\
**Last updated:** [July 8, 2020, 6:30am UTC](https://discourse.cmake.org/t/google-test-system-includes/1230 "2020-07-08T06:30:20Z")

</div>

Google test is using system interface includes. This does not work for my project/build, so I am trying to not have those interface includes be -isystem. I did the following… set(CMAKE\_NO\_SYSTEM\_FROM\_IMPORTED ON) add\_su…

---

## [CPACK\_RPM\_EXCLUDE\_FROM\_AUTO\_FILELIST ignored?](https://discourse.cmake.org/t/cpack-rpm-exclude-from-auto-filelist-ignored/1503)

<div class="topic-metadata">

**Author:** [@rickhg12hs](https://discourse.cmake.org/u/rickhg12hs)\
**Replies:** 3\
**Last updated:** [July 8, 2020, 4:57am UTC](https://discourse.cmake.org/t/cpack-rpm-exclude-from-auto-filelist-ignored/1503 "2020-07-08T04:57:13Z")

</div>

Using the latest cmake: $ cmake --version cmake version 3.18.20200707-gee781ac CMake suite maintained and supported by Kitware (kitware.com/cmake). cmakeing the cmake project from git clone https://gitlab.kitware.com/…

---

## [FindBLAS bug with Intel compiler on Windows?](https://discourse.cmake.org/t/findblas-bug-with-intel-compiler-on-windows/1493)

<div class="topic-metadata">

**Author:** [@scivision](https://discourse.cmake.org/u/scivision)\
**Replies:** 3\
**Last updated:** [July 7, 2020, 3:17am UTC](https://discourse.cmake.org/t/findblas-bug-with-intel-compiler-on-windows/1493 "2020-07-07T03:17:59Z")

</div>

At some point, finding BLAS and Lapack for Intel compilers on Windows seems to have broken. This issue occurs at least for CMake 3.16.8 and CMake 3.18-rc3. This happens for Intel Parallel Studio XE as well as the new Int…

---

## [GitLab: Tracking changes in master.](https://discourse.cmake.org/t/gitlab-tracking-changes-in-master/1494)

<div class="topic-metadata">

**Author:** [@Holger](https://discourse.cmake.org/u/Holger)\
**Replies:** 3\
**Last updated:** [July 6, 2020, 9:17pm UTC](https://discourse.cmake.org/t/gitlab-tracking-changes-in-master/1494 "2020-07-06T21:17:42Z")

</div>

Hi, I have forked the upstream CMake repository into a personal account and created a branch into which I committed stuff (following CONTRIBUTING.rst) In the meantime, the upstream master has changed, but my forked pro…

---

## [What controls CPack staging location](https://discourse.cmake.org/t/what-controls-cpack-staging-location/1492)

<div class="topic-metadata">

**Author:** [@briadam](https://discourse.cmake.org/u/briadam)\
**Replies:** 3\
**Last updated:** [July 6, 2020, 8:30pm UTC](https://discourse.cmake.org/t/what-controls-cpack-staging-location/1492 "2020-07-06T20:30:05Z")

</div>

Background: Our Dakota project integrates Trilinos which uses the TriBITS system for CMake builds. (For better or worse) Dakota manages Trilinos as a sub-package with add\_subdirectory. In updating Dakota from Trilinos d2…

---

## [Windows: how to have multiple CMake versions installed?](https://discourse.cmake.org/t/windows-how-to-have-multiple-cmake-versions-installed/1491)

<div class="topic-metadata">

**Author:** [@scivision](https://discourse.cmake.org/u/scivision)\
**Replies:** 2\
**Last updated:** [July 6, 2020, 7:43pm UTC](https://discourse.cmake.org/t/windows-how-to-have-multiple-cmake-versions-installed/1491 "2020-07-06T19:43:57Z")

</div>

For dev purposes on Windows, we would like to have multiple CMake versions “installed” as we easily can on Linux. This would allow local testing of issues across CMake releases (e.g. 3.14 vs. 3.18). Yes, this is what clo…

---

## [QNX CMake Build](https://discourse.cmake.org/t/qnx-cmake-build/1309)

<div class="topic-metadata">

**Author:** [@developer](https://discourse.cmake.org/u/developer)\
**Replies:** 2\
**Last updated:** [July 6, 2020, 5:36pm UTC](https://discourse.cmake.org/t/qnx-cmake-build/1309 "2020-07-06T17:36:07Z")

</div>

Hello, I am getting undefined errors like the following when using the qnx toolchain file from the docs (https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html#cross-compiling-for-qnx). qnx700/target/qnx7/u…

---

## [Observation on compiler options](https://discourse.cmake.org/t/observation-on-compiler-options/1481)

<div class="topic-metadata">

**Author:** [@lfcarreon1](https://discourse.cmake.org/u/lfcarreon1)\
**Replies:** 2\
**Last updated:** [July 6, 2020, 12:17pm UTC](https://discourse.cmake.org/t/observation-on-compiler-options/1481 "2020-07-06T12:17:26Z")

</div>

Hi, I’m new to CMake and I have started experimenting with it by converting my hand coded make files into CMakeLists.txt after having read the book Professional CMake: A Practical Guide. I’m using CMake 3.17.3 that com…

---

## [Documentation on CTEST\_RESOURCE\_SPEC\_FILE is incomplete](https://discourse.cmake.org/t/documentation-on-ctest-resource-spec-file-is-incomplete/1450)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 1\
**Last updated:** [July 5, 2020, 11:36am UTC](https://discourse.cmake.org/t/documentation-on-ctest-resource-spec-file-is-incomplete/1450 "2020-07-05T11:36:48Z")

</div>

A new CTEST\_RESOURCE\_SPEC\_FILE variable is being added in CMake 3.18. The current docs don’t adequately specify how this variable relates to the other two ways of controlling the resource spec file: Providing a ctest -…

---

## [Need cmake 3.17 linux arm64 binary for Travis CI build on arm64](https://discourse.cmake.org/t/need-cmake-3-17-linux-arm64-binary-for-travis-ci-build-on-arm64/1473)

<div class="topic-metadata">

**Author:** [@boxerab](https://discourse.cmake.org/u/boxerab)\
**Replies:** 8\
**Last updated:** [July 3, 2020, 1:58pm UTC](https://discourse.cmake.org/t/need-cmake-3-17-linux-arm64-binary-for-travis-ci-build-on-arm64/1473 "2020-07-03T13:58:15Z")

</div>

What is the best way of making this binary available to my Travis build? For x86-64, I just download the tarball from https://cmake.org/files/v3.17

---

## [Generated code dependency fails](https://discourse.cmake.org/t/generated-code-dependency-fails/1480)

<div class="topic-metadata">

**Author:** [@Marc\_Pawlowsky](https://discourse.cmake.org/u/Marc_Pawlowsky)\
**Replies:** 3\
**Last updated:** [July 3, 2020, 7:43am UTC](https://discourse.cmake.org/t/generated-code-dependency-fails/1480 "2020-07-03T07:43:22Z")

</div>

Sample code is available in https://github.com/marcpawl/cmake\_generated\_source.git I have two directories px and pxlib. px generates code, and pxlib consumes it. For px I have: cmake\_minimum\_required ( VERSION 3.12) …

---

## [CMake 3.18.0-rc3 is ready for testing](https://discourse.cmake.org/t/cmake-3-18-0-rc3-is-ready-for-testing/1476)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [July 1, 2020, 9:03pm UTC](https://discourse.cmake.org/t/cmake-3-18-0-rc3-is-ready-for-testing/1476 "2020-07-01T21:03:28Z")

</div>

I am proud to announce the third CMake 3.18 release candidate. https://cmake.org/download/ Documentation is available at: https://cmake.org/cmake/help/v3.18 Release notes appear below and are also published at https…

---

## [Broken build.ninja on FreeBSD](https://discourse.cmake.org/t/broken-build-ninja-on-freebsd/1474)

<div class="topic-metadata">

**Author:** [@Holger](https://discourse.cmake.org/u/Holger)\
**Replies:** 4\
**Last updated:** [July 1, 2020, 8:46pm UTC](https://discourse.cmake.org/t/broken-build-ninja-on-freebsd/1474 "2020-07-01T20:46:22Z")

</div>

Hi guys, I compiled CMake (cloned from GitLab) on FreeBSD-12.1-RELEASE and got a broken ninja file. Here is the CMakeLists.txt: cmake\_minimum\_required(VERSION 3.16) project(NinjaOmitLocalOutputTest) add\_library(foo foo…

---

## [How does one link against CUDA "compatibility libs"](https://discourse.cmake.org/t/how-does-one-link-against-cuda-compatibility-libs/1467)

<div class="topic-metadata">

**Author:** [@paterno](https://discourse.cmake.org/u/paterno)\
**Replies:** 2\
**Last updated:** [July 1, 2020, 2:10pm UTC](https://discourse.cmake.org/t/how-does-one-link-against-cuda-compatibility-libs/1467 "2020-07-01T14:10:28Z")

</div>

I am using CMake v3.18.0rc2 to build a CUDA program that uses CUDA 11, on Scientific Linux 7 (a CentOS-7 relative). The drivers for CUDA 11 are not available on CentOS-7 (they are for CentOS-8), so I have been advised to…

---

## [CMake is forcing MSVC to use C compiler on C++ code](https://discourse.cmake.org/t/cmake-is-forcing-msvc-to-use-c-compiler-on-c-code/1463)

<div class="topic-metadata">

**Author:** [@johnratius](https://discourse.cmake.org/u/johnratius)\
**Replies:** 1\
**Last updated:** [July 1, 2020, 1:19pm UTC](https://discourse.cmake.org/t/cmake-is-forcing-msvc-to-use-c-compiler-on-c-code/1463 "2020-07-01T13:19:58Z")

</div>

I have no idea what I did; I am trying to compile C++ code and CMake on CLion chooses the Visual Studio C compiler to compile it. When I don’t use CMake, it runs fine. main.cpp: #include \<iostream\> #include "include/Wi…

---

## [cmake-file-api code model version 2.1](https://discourse.cmake.org/t/cmake-file-api-code-model-version-2-1/1465)

<div class="topic-metadata">

**Author:** [@Bob\_Brown](https://discourse.cmake.org/u/Bob_Brown)\
**Replies:** 5\
**Last updated:** [June 30, 2020, 5:37pm UTC](https://discourse.cmake.org/t/cmake-file-api-code-model-version-2-1/1465 "2020-06-30T17:37:23Z")

</div>

Hello, We maintain the CMake Tools extension for VS Code and we’re seeing reports of a new minor revision of the code model for cmake-file-api(7) in version 3.18-rc1 and above (revision 2.1). I couldn’t find any docume…

---

## [Nightly build invoking CMake from outside build directory](https://discourse.cmake.org/t/nightly-build-invoking-cmake-from-outside-build-directory/1453)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 4\
**Last updated:** [June 30, 2020, 11:23am UTC](https://discourse.cmake.org/t/nightly-build-invoking-cmake-from-outside-build-directory/1453 "2020-06-30T11:23:38Z")

</div>

Do we have any nightly builds which run cmake and ctest from a directory other than the build directory? If not, we should try to get at least one build site to do that. This might help catch things like situations that …

---

## [usage of CMAKE\_SYSROOT and CMAKE\_INSTALL\_PREFIX when cross-compiling](https://discourse.cmake.org/t/usage-of-cmake-sysroot-and-cmake-install-prefix-when-cross-compiling/1460)

<div class="topic-metadata">

**Author:** [@Stefan\_Seefeld](https://discourse.cmake.org/u/Stefan_Seefeld)\
**Replies:** 0\
**Last updated:** [June 29, 2020, 9:33pm UTC](https://discourse.cmake.org/t/usage-of-cmake-sysroot-and-cmake-install-prefix-when-cross-compiling/1460 "2020-06-29T21:33:40Z")

</div>

I’m trying to build packages for a cross-build environment (QNX), and I’m slightly confused by the use of the CMAKE\_SYSROOT and CMAKE\_INSTALL\_PREFIX variables. I would expect my generated (debian) package to contain ins…

---

## [Why in my project bison file (parser.yy)can't include normal header?](https://discourse.cmake.org/t/why-in-my-project-bison-file-parser-yy-cant-include-normal-header/1455)

<div class="topic-metadata">

**Author:** [@cookieli](https://discourse.cmake.org/u/cookieli)\
**Replies:** 1\
**Last updated:** [June 28, 2020, 9:37pm UTC](https://discourse.cmake.org/t/why-in-my-project-bison-file-parser-yy-cant-include-normal-header/1455 "2020-06-28T21:37:13Z")

</div>

Here is the error: /home/lzx/mitscript/parser.yy:29:10: fatal error: AST.h: No such file or directory #include "AST.h" ^~~~~~~ compilation terminated. And here is my cmake: cmake\_minimum\_required(VERSION 3.…

---

## [Recommended RAM and hard drive space](https://discourse.cmake.org/t/recommended-ram-and-hard-drive-space/1445)

<div class="topic-metadata">

**Author:** [@Cohens\_Kahdeem](https://discourse.cmake.org/u/Cohens_Kahdeem)\
**Replies:** 3\
**Last updated:** [June 26, 2020, 7:50am UTC](https://discourse.cmake.org/t/recommended-ram-and-hard-drive-space/1445 "2020-06-26T07:50:36Z")

</div>

Hi, all. Based on your usage of CMake, what would you say is the recommended RAM (GB) and hard disk space (GB) for installation and optimal use? Working to determine compute resources required for the application prior t…

---

## [macOS Big Sur 11 CMake issue fixed in 3.18rc1](https://discourse.cmake.org/t/macos-big-sur-11-cmake-issue-fixed-in-3-18rc1/1440)

<div class="topic-metadata">

**Author:** [@alcroito](https://discourse.cmake.org/u/alcroito)\
**Replies:** 3\
**Last updated:** [June 24, 2020, 4:36pm UTC](https://discourse.cmake.org/t/macos-big-sur-11-cmake-issue-fixed-in-3-18rc1/1440 "2020-06-24T16:36:44Z")

</div>

The macOS beta release notes under the 3rd party apps known issues section, mention that CMake might not work correctly, and the solution is to update 3.18rc1. Does anyone know what the issue is, and which commit in 3.1…

---

## [Wrapping function()](https://discourse.cmake.org/t/wrapping-function/1410)

<div class="topic-metadata">

**Author:** [@KUGA2](https://discourse.cmake.org/u/KUGA2)\
**Replies:** 4\
**Last updated:** [June 24, 2020, 3:32pm UTC](https://discourse.cmake.org/t/wrapping-function/1410 "2020-06-24T15:32:07Z")

</div>

Why does this not work? macro(myfunction FUNCTION\_NAME) function(${FUNCTION\_NAME}) endmacro() macro(endmyfunction) endfunction() endmacro() myfunction(new\_function) endmyfunction() This results in: A logical bl…

---

## [Default value for new DISCOVERY\_MODE option for gtest\_discover\_tests()](https://discourse.cmake.org/t/default-value-for-new-discovery-mode-option-for-gtest-discover-tests/1422)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 8\
**Last updated:** [June 24, 2020, 1:26pm UTC](https://discourse.cmake.org/t/default-value-for-new-discovery-mode-option-for-gtest-discover-tests/1422 "2020-06-24T13:26:24Z")

</div>

I’m wondering if we might be able to change the default value of the new DISCOVERY\_MODE option for gtest\_discover\_tests(), added in the CMake 3.18 release. We are still in release candidate stage, so it’s not too late to…

---

## [Can you provide an example of Cmake building a QT project in VS2015?](https://discourse.cmake.org/t/can-you-provide-an-example-of-cmake-building-a-qt-project-in-vs2015/1439)

<div class="topic-metadata">

**Author:** [@mirro187](https://discourse.cmake.org/u/mirro187)\
**Replies:** 0\
**Last updated:** [June 24, 2020, 6:57am UTC](https://discourse.cmake.org/t/can-you-provide-an-example-of-cmake-building-a-qt-project-in-vs2015/1439 "2020-06-24T06:57:07Z")

</div>

It is best to include the CMakeModules file

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

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