# Latest

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

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

**Page:** 191

---

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

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [September 15, 2020, 5:11pm UTC](https://discourse.cmake.org/t/cmake-3-17-5-available-for-download/1848 "2020-09-15T17:11:53Z")

</div>

We are pleased to announce that CMake 3.17.5 is now available for download at: https://cmake.org/download/ Thanks for your support! Changes in 3.17.5 since 3.17.4: Alexandru Croitor (2): AutoGen: Fix over-specifi…

---

## [CMake 3.16.9 available for download](https://discourse.cmake.org/t/cmake-3-16-9-available-for-download/1847)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [September 15, 2020, 5:05pm UTC](https://discourse.cmake.org/t/cmake-3-16-9-available-for-download/1847 "2020-09-15T17:05:57Z")

</div>

We are pleased to announce that CMake 3.16.9 is now available for download. You can find the 3.16.9 release at: https://github.com/Kitware/CMake/releases/tag/v3.16.9 Thanks for your support! Changes in 3.16.9 since…

---

## [CPack + WiX - setting working directory for desktop and menu shortcuts?](https://discourse.cmake.org/t/cpack-wix-setting-working-directory-for-desktop-and-menu-shortcuts/1846)

<div class="topic-metadata">

**Author:** [@starseeker](https://discourse.cmake.org/u/starseeker)\
**Replies:** 0\
**Last updated:** [September 15, 2020, 2:41pm UTC](https://discourse.cmake.org/t/cpack-wix-setting-working-directory-for-desktop-and-menu-shortcuts/1846 "2020-09-15T14:41:30Z")

</div>

Hi! I’m trying to match the functionality of our CPack/NSIS installer using CPack + WiX, and I’ve hit a bit of a tricky point. I’d like to alter the default working directory for applications launched via desktop and m…

---

## [Provide a hint to find\_package to use a CMake target from the build tree](https://discourse.cmake.org/t/provide-a-hint-to-find-package-to-use-a-cmake-target-from-the-build-tree/1844)

<div class="topic-metadata">

**Author:** [@Ahmed\_Hesham](https://discourse.cmake.org/u/Ahmed_Hesham)\
**Replies:** 1\
**Last updated:** [September 15, 2020, 8:29am UTC](https://discourse.cmake.org/t/provide-a-hint-to-find-package-to-use-a-cmake-target-from-the-build-tree/1844 "2020-09-15T08:29:54Z")

</div>

Hello, I am having trouble with CMake in a use case that I would have thought to be fairly common. I am not entirely sure what to search for which is why I’m trying the mailing list. Let’s say I am building a C++ proje…

---

## [Using install(script ... correctly](https://discourse.cmake.org/t/using-install-script-correctly/1836)

<div class="topic-metadata">

**Author:** [@EosPengwern](https://discourse.cmake.org/u/EosPengwern)\
**Replies:** 5\
**Last updated:** [September 15, 2020, 7:52am UTC](https://discourse.cmake.org/t/using-install-script-correctly/1836 "2020-09-15T07:52:20Z")

</div>

I’m trying to use “install(script …” correctly, but it seems to fail silently and I can’t work out why (precisely because its silent - there are no diagnostic or error messages being sent out). This is the script I want…

---

## [Using 'install(CODE "execute\_process(COMMAND ...' with a shell command](https://discourse.cmake.org/t/using-install-code-execute-process-command-with-a-shell-command/1833)

<div class="topic-metadata">

**Author:** [@EosPengwern](https://discourse.cmake.org/u/EosPengwern)\
**Replies:** 2\
**Last updated:** [September 14, 2020, 9:09am UTC](https://discourse.cmake.org/t/using-install-code-execute-process-command-with-a-shell-command/1833 "2020-09-14T09:09:14Z")

</div>

I’ve used the pattern install(CODE "execute\_process(COMMAND ${CMAKE\_COMMAND} -E ... successfully many times, but I’m having difficulty where the process I want to run is a Bash shell command rather than a CMAKE -E op…

---

## [Platform QNX does not set UNIX to True when cross-compiling on Windows](https://discourse.cmake.org/t/platform-qnx-does-not-set-unix-to-true-when-cross-compiling-on-windows/1824)

<div class="topic-metadata">

**Author:** [@Pablo\_R](https://discourse.cmake.org/u/Pablo_R)\
**Replies:** 1\
**Last updated:** [September 12, 2020, 11:24pm UTC](https://discourse.cmake.org/t/platform-qnx-does-not-set-unix-to-true-when-cross-compiling-on-windows/1824 "2020-09-12T23:24:14Z")

</div>

Hi, I am cross-compiling to QNX on Windows. The first lines of my toolchain file look as follows. include(Platform/QNX) set(CMAKE\_SYSTEM\_NAME QNX) set(CMAKE\_CXX\_COMPILER\_ID QCC) However, I observed that my CMakeLists …

---

## [cmake 3.14, ubunto 20.04: Generator Ninja does not support platform specification, but platform x64 was specified.](https://discourse.cmake.org/t/cmake-3-14-ubunto-20-04-generator-ninja-does-not-support-platform-specification-but-platform-x64-was-specified/1820)

<div class="topic-metadata">

**Author:** [@ProTur1](https://discourse.cmake.org/u/ProTur1)\
**Replies:** 1\
**Last updated:** [September 11, 2020, 3:47pm UTC](https://discourse.cmake.org/t/cmake-3-14-ubunto-20-04-generator-ninja-does-not-support-platform-specification-but-platform-x64-was-specified/1820 "2020-09-11T15:47:25Z")

</div>

Generator Ninja does not support platform specification, but platform x64 was specified. Where to start looking for the above problem? Im setting CMAKE\_GENERATOR\_PLATFORM without problem when working with genera…

---

## [CMake generating much smaller \*.a files than makefile](https://discourse.cmake.org/t/cmake-generating-much-smaller-a-files-than-makefile/1816)

<div class="topic-metadata">

**Author:** [@dehilster](https://discourse.cmake.org/u/dehilster)\
**Replies:** 4\
**Last updated:** [September 10, 2020, 3:39pm UTC](https://discourse.cmake.org/t/cmake-generating-much-smaller-a-files-than-makefile/1816 "2020-09-10T15:39:40Z")

</div>

When converting from makefile to CMake, the resulting file sizes are hugely different. size with makefile: 266k size with cmake: 33K Here are the files. Any insight would be very helpful! Makefile: LIBOBJ = dir.o io…

---

## [Cannot find header files during compilation; dependencies managed by Hunter](https://discourse.cmake.org/t/cannot-find-header-files-during-compilation-dependencies-managed-by-hunter/1798)

<div class="topic-metadata">

**Author:** [@govi218](https://discourse.cmake.org/u/govi218)\
**Replies:** 1\
**Last updated:** [September 9, 2020, 9:55pm UTC](https://discourse.cmake.org/t/cannot-find-header-files-during-compilation-dependencies-managed-by-hunter/1798 "2020-09-09T21:55:00Z")

</div>

Here is my top level CMakeLists.txt. I build it using cmake -H. -B\_builds -DHUNTER\_STATUS\_DEBUG=ON -DCMAKE\_BUILD\_TYPE=Release : cmake\_minimum\_required(VERSION 3.2) set( CMAKE\_TOOLCHAIN\_FILE "${CMAKE\_SOURCE\_DIR}…

---

## [How to determine when set(var ... PARENT\_SCOPE) will work?](https://discourse.cmake.org/t/how-to-determine-when-set-var-parent-scope-will-work/1795)

<div class="topic-metadata">

**Author:** [@webbtrail](https://discourse.cmake.org/u/webbtrail)\
**Replies:** 6\
**Last updated:** [September 9, 2020, 3:31pm UTC](https://discourse.cmake.org/t/how-to-determine-when-set-var-parent-scope-will-work/1795 "2020-09-09T15:31:46Z")

</div>

I want an included .cmake file to pass/update variables in the PARENT\_SCOPE. What is the best way to determine that set(var value PARENT\_SCOPE) will work before it is used? has\_parent(HAS\_PARENT) if(HAS\_PARENT) set(p…

---

## [/MP on all files but pre\_compiled\_header](https://discourse.cmake.org/t/mp-on-all-files-but-pre-compiled-header/1781)

<div class="topic-metadata">

**Author:** [@sandercox](https://discourse.cmake.org/u/sandercox)\
**Replies:** 1\
**Last updated:** [September 8, 2020, 3:59pm UTC](https://discourse.cmake.org/t/mp-on-all-files-but-pre-compiled-header/1781 "2020-09-08T15:59:16Z")

</div>

We have switched to using target\_precompile\_headers() and since we did this we’ve been getting the following warning in MSBuild based builds: cl : command line warning D9030: ‘/Yc’ is incompatible with multiprocessing;…

---

## [Using CMake with NVidia's CUDA](https://discourse.cmake.org/t/using-cmake-with-nvidias-cuda/1698)

<div class="topic-metadata">

**Author:** [@hungry-snorlax](https://discourse.cmake.org/u/hungry-snorlax)\
**Replies:** 3\
**Last updated:** [September 8, 2020, 1:32am UTC](https://discourse.cmake.org/t/using-cmake-with-nvidias-cuda/1698 "2020-09-08T01:32:51Z")

</div>

Hello, I have a cuda file (.cu) which does not have a main point of entry. I am able to compile it on the terminal using nvcc and a bunch of nvcc compile options to a .cubin (CUDA binary). Could someone please tell me h…

---

## [Generating files](https://discourse.cmake.org/t/generating-files/1788)

<div class="topic-metadata">

**Author:** [@AndrzejB](https://discourse.cmake.org/u/AndrzejB)\
**Replies:** 0\
**Last updated:** [September 7, 2020, 2:05pm UTC](https://discourse.cmake.org/t/generating-files/1788 "2020-09-07T14:05:41Z")

</div>

How to write Cmake file, where before building whole is build tblgen program. Next are generated files \*.inc (if not exists), next is build whole. I found https://crascit.com/2017/04/18/generated-sources-in-cmake-build…

---

## [Windows-Clang platform adds -fPIC for shared dlls](https://discourse.cmake.org/t/windows-clang-platform-adds-fpic-for-shared-dlls/1784)

<div class="topic-metadata">

**Author:** [@tgq](https://discourse.cmake.org/u/tgq)\
**Replies:** 5\
**Last updated:** [September 6, 2020, 5:48pm UTC](https://discourse.cmake.org/t/windows-clang-platform-adds-fpic-for-shared-dlls/1784 "2020-09-06T17:48:36Z")

</div>

Hello. I am compiling on linux host using clang-12 and CMAKE\_SYSTEM\_NAME Windows-Clang in my toolchain file. I have studied the Modules/Platform/Windows-Clang.cmake which makes a decission on choosing msvc/gnu variant ba…

---

## [Crosscompiling toolchain is functional but cmake does not want to cooperate](https://discourse.cmake.org/t/crosscompiling-toolchain-is-functional-but-cmake-does-not-want-to-cooperate/1766)

<div class="topic-metadata">

**Author:** [@tgq](https://discourse.cmake.org/u/tgq)\
**Replies:** 10\
**Last updated:** [September 4, 2020, 8:41pm UTC](https://discourse.cmake.org/t/crosscompiling-toolchain-is-functional-but-cmake-does-not-want-to-cooperate/1766 "2020-09-04T20:41:29Z")

</div>

Hello. I am long time CMake user but I can’t figure out how to crosscompile for windows using linux as a host using clang (version 12, built manually and placed in /opt and PATH if it matters). Without going into to much…

---

## [iOS support](https://discourse.cmake.org/t/ios-support/1776)

<div class="topic-metadata">

**Author:** [@thenewandy](https://discourse.cmake.org/u/thenewandy)\
**Replies:** 0\
**Last updated:** [September 3, 2020, 11:10am UTC](https://discourse.cmake.org/t/ios-support/1776 "2020-09-03T11:10:24Z")

</div>

Hello, I’m trying to understand what the state of iOS support is. I have a project which I can build for linux (cmake … && make) and macOS trivially (cmake -GXcode … && run xcode on generated files). However, when I try…

---

## [Consider some heap optimizations](https://discourse.cmake.org/t/consider-some-heap-optimizations/1761)

<div class="topic-metadata">

**Author:** [@OleksandrKvl](https://discourse.cmake.org/u/OleksandrKvl)\
**Replies:** 3\
**Last updated:** [September 2, 2020, 11:18am UTC](https://discourse.cmake.org/t/consider-some-heap-optimizations/1761 "2020-09-02T11:18:55Z")

</div>

Hi, I’ve made some heap optimizations, details are here: Reducing CMake heap usage with Heaptrack. TL;DR: I changed cmListFunction to be a std::shared\_ptr and did a couple of another little changes, you can find them al…

---

## [CMake 3.18 - Feature suggestion: New option for install(CODE ...)](https://discourse.cmake.org/t/cmake-3-18-feature-suggestion-new-option-for-install-code/1756)

<div class="topic-metadata">

**Author:** [@Aymeric\_Pelle](https://discourse.cmake.org/u/Aymeric_Pelle)\
**Replies:** 2\
**Last updated:** [August 28, 2020, 5:53pm UTC](https://discourse.cmake.org/t/cmake-3-18-feature-suggestion-new-option-for-install-code/1756 "2020-08-28T17:53:12Z")

</div>

Hello, I would like to install code at the beginning of the cmake\_install.cmake script. But, to do that an option BEFORE or PREPEND which indicated that the code should be put at the beginning of the install script is …

---

## [CMAKE\_STAGING\_PREFIX not being used by find\_\*](https://discourse.cmake.org/t/cmake-staging-prefix-not-being-used-by-find/1746)

<div class="topic-metadata">

**Author:** [@Daniel\_Stonier](https://discourse.cmake.org/u/Daniel_Stonier)\
**Replies:** 4\
**Last updated:** [August 28, 2020, 4:41am UTC](https://discourse.cmake.org/t/cmake-staging-prefix-not-being-used-by-find/1746 "2020-08-28T04:41:21Z")

</div>

CMAKE\_STAGING\_PREFIX would indicate that it’s used as one of the search paths for the find\_\*\*\* methods. However, I’m not finding that in practice - wondering if I’m missing some other configuration. Toolchain (for ubunt…

---

## [Linux 32bit cmake available?](https://discourse.cmake.org/t/linux-32bit-cmake-available/1755)

<div class="topic-metadata">

**Author:** [@bbrodd](https://discourse.cmake.org/u/bbrodd)\
**Replies:** 4\
**Last updated:** [August 27, 2020, 9:19pm UTC](https://discourse.cmake.org/t/linux-32bit-cmake-available/1755 "2020-08-27T21:19:01Z")

</div>

I am trying to install a 32bit version of cmake on my Xubuntu 18.04 32bit system using a script like this: #!/bin/bash version=3.18 build=1 mkdir ~/temp cd ~/temp wget https://cmake.org/files/v$version/cmake-$versi…

---

## [Missing CompileAs option on vcxproj generated by cmake 3.18.1](https://discourse.cmake.org/t/missing-compileas-option-on-vcxproj-generated-by-cmake-3-18-1/1708)

<div class="topic-metadata">

**Author:** [@YassinLokhat](https://discourse.cmake.org/u/YassinLokhat)\
**Replies:** 2\
**Last updated:** [August 26, 2020, 9:33pm UTC](https://discourse.cmake.org/t/missing-compileas-option-on-vcxproj-generated-by-cmake-3-18-1/1708 "2020-08-26T21:33:36Z")

</div>

When I generate the .vcxproj for my project with cmake 3.2.1, it generates the line \<CompileAs\>CompileAsCpp\</CompileAs\> But when I try the cmake version 3.18.1, the generated .vcxproj file does not contain that previou…

---

## [Trying to install CMake on windows and need to be admin](https://discourse.cmake.org/t/trying-to-install-cmake-on-windows-and-need-to-be-admin/1741)

<div class="topic-metadata">

**Author:** [@Jav\_Oper](https://discourse.cmake.org/u/Jav_Oper)\
**Replies:** 1\
**Last updated:** [August 26, 2020, 6:54pm UTC](https://discourse.cmake.org/t/trying-to-install-cmake-on-windows-and-need-to-be-admin/1741 "2020-08-26T18:54:14Z")

</div>

I am trying to install CMake 3.18.1 on Windows 10 through Msys. i have bootstraped i have run make but when i try make install i get the error when installation starts(after it has built everything), that it cant create …

---

## [No such file or directory at configure time](https://discourse.cmake.org/t/no-such-file-or-directory-at-configure-time/1749)

<div class="topic-metadata">

**Author:** [@hex](https://discourse.cmake.org/u/hex)\
**Replies:** 1\
**Last updated:** [August 26, 2020, 1:36pm UTC](https://discourse.cmake.org/t/no-such-file-or-directory-at-configure-time/1749 "2020-08-26T13:36:51Z")

</div>

Problem: execution of imported target returns a No such file or directory message. find\_package( Python3 ) if( Python3\_FOUND ) execute\_process( COMMAND Python3::Interpreter --version RESULT\_VARIABLE res OUTPUT\_V…

---

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

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 0\
**Last updated:** [August 11, 2020, 2:07pm UTC](https://discourse.cmake.org/t/professional-cmake-a-practical-guide-7th-edition/1686 "2020-08-11T14:07:49Z")

</div>

The 7th Edition of the book Professional CMake: A Practical Guide is now available. It has been updated for the CMake 3.18 release. The main highlights for this edition include: Significantly expanded coverage of comma…

---

## [How does cmake configure Header Files folder to configure subfolder Item?](https://discourse.cmake.org/t/how-does-cmake-configure-header-files-folder-to-configure-subfolder-item/1728)

<div class="topic-metadata">

**Author:** [@mirro187](https://discourse.cmake.org/u/mirro187)\
**Replies:** 4\
**Last updated:** [August 23, 2020, 1:06am UTC](https://discourse.cmake.org/t/how-does-cmake-configure-header-files-folder-to-configure-subfolder-item/1728 "2020-08-23T01:06:04Z")

</div>

The red line has been identified in the screenshot below

---

## [rpm cpack debuginfo package generation getting warning "no source files were found!" and no debuginfo package](https://discourse.cmake.org/t/rpm-cpack-debuginfo-package-generation-getting-warning-no-source-files-were-found-and-no-debuginfo-package/1725)

<div class="topic-metadata">

**Author:** [@garybirnhak](https://discourse.cmake.org/u/garybirnhak)\
**Replies:** 2\
**Last updated:** [August 21, 2020, 7:33pm UTC](https://discourse.cmake.org/t/rpm-cpack-debuginfo-package-generation-getting-warning-no-source-files-were-found-and-no-debuginfo-package/1725 "2020-08-21T19:33:25Z")

</div>

I have a problem with cpackrpm and have been banging my head against the wall for several days. I am on Centos 7.6 and using cmake/cpack 3.18.1. I can create a binary rpm, however, I keep getting “CPackRPM:Warning: debug…

---

## [CPack archive file empty](https://discourse.cmake.org/t/cpack-archive-file-empty/1726)

<div class="topic-metadata">

**Author:** [@fry](https://discourse.cmake.org/u/fry)\
**Replies:** 7\
**Last updated:** [August 21, 2020, 4:26pm UTC](https://discourse.cmake.org/t/cpack-archive-file-empty/1726 "2020-08-21T16:26:41Z")

</div>

I have been trying to use CPack on my project (which builds vst plugins) and having a hard time making it work. So I created a smaller project to ask for help. The idea is that there are 2 components: a vst2 and a vst3 …

---

## [cmake.org/cmake/help search results are often disappointing](https://discourse.cmake.org/t/cmake-org-cmake-help-search-results-are-often-disappointing/1730)

<div class="topic-metadata">

**Author:** [@AndrewGaspar](https://discourse.cmake.org/u/AndrewGaspar)\
**Replies:** 3\
**Last updated:** [August 21, 2020, 9:48am UTC](https://discourse.cmake.org/t/cmake-org-cmake-help-search-results-are-often-disappointing/1730 "2020-08-21T09:48:49Z")

</div>

I’m trying to look up the documentation for option here. The results are not so helpful:

---

## [CMake 3.18.2 available for download](https://discourse.cmake.org/t/cmake-3-18-2-available-for-download/1729)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [August 20, 2020, 4:44pm UTC](https://discourse.cmake.org/t/cmake-3-18-2-available-for-download/1729 "2020-08-20T16:44:32Z")

</div>

We are pleased to announce that CMake 3.18.2 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.18.2 since 3.18.1: …

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

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