# Latest

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

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

**Page:** 178

---

## [\[Visual Studio\] Error: Unable to deploy local file 'C:\\....\\x64\\Release\\ZERO\_CHECK'](https://discourse.cmake.org/t/visual-studio-error-unable-to-deploy-local-file-c-x64-release-zero-check/2072)

<div class="topic-metadata">

**Author:** [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)\
**Replies:** 2\
**Last updated:** [January 15, 2021, 5:42pm UTC](https://discourse.cmake.org/t/visual-studio-error-unable-to-deploy-local-file-c-x64-release-zero-check/2072 "2021-01-15T17:42:34Z")

</div>

I’m trying to deploy my code onto my testing machine. Here is a windows guide on how to do this: However I’m running into a really annoying issue with the workflow. The visual studio solution tries to deploy zer…

---

## [Unable to understand the difference in 3.19 and 3.5.2](https://discourse.cmake.org/t/unable-to-understand-the-difference-in-3-19-and-3-5-2/2553)

<div class="topic-metadata">

**Author:** [@davas](https://discourse.cmake.org/u/davas)\
**Replies:** 2\
**Last updated:** [January 15, 2021, 12:54pm UTC](https://discourse.cmake.org/t/unable-to-understand-the-difference-in-3-19-and-3-5-2/2553 "2021-01-15T12:54:00Z")

</div>

Hi, I am new to cmake and I have just started learning. So please excuse if the question is naive. The book I am following says to use version \>= 3.5.2 and I am able to find such version here https://github.com/Kitware…

---

## [File API and imported targets](https://discourse.cmake.org/t/file-api-and-imported-targets/242)

<div class="topic-metadata">

**Author:** [@Pablo\_Le\_Henaff](https://discourse.cmake.org/u/Pablo_Le_Henaff)\
**Replies:** 6\
**Last updated:** [January 15, 2021, 6:23am UTC](https://discourse.cmake.org/t/file-api-and-imported-targets/242 "2021-01-15T06:23:04Z")

</div>

Hi everyone, I would like to automatically list the dependencies of all of my project’s targets, including external dependencies. Is there a way to get the file API to list IMPORTED targets? Thank you, Pablo

---

## [Intel oneAPI Gold release broken (Linux, Windows)](https://discourse.cmake.org/t/intel-oneapi-gold-release-broken-linux-windows/2340)

<div class="topic-metadata">

**Author:** [@scivision](https://discourse.cmake.org/u/scivision)\
**Replies:** 3\
**Last updated:** [January 15, 2021, 2:44am UTC](https://discourse.cmake.org/t/intel-oneapi-gold-release-broken-linux-windows/2340 "2021-01-15T02:44:06Z")

</div>

Intel oneAPI compilers worked across several beta versions as well as several CMake versions. I simply use icc/icl + ifort so I think this is unrelated to the IntelClang and DPC++ currently in CMake GitLab MRs. However,…

---

## [Passing build variables using command line](https://discourse.cmake.org/t/passing-build-variables-using-command-line/2530)

<div class="topic-metadata">

**Author:** [@toothache](https://discourse.cmake.org/u/toothache)\
**Replies:** 4\
**Last updated:** [January 15, 2021, 1:30am UTC](https://discourse.cmake.org/t/passing-build-variables-using-command-line/2530 "2021-01-15T01:30:07Z")

</div>

I’d like to override the cmake cached variable using the command line. But if a variable is repeatedly provided, does the last value take effect? # what is the value of FOO? \> cmake -DFOO=123 -DFOO=321 Update: Test r…

---

## [win command within add\_test() never returns and blocks test suite execution](https://discourse.cmake.org/t/win-command-within-add-test-never-returns-and-blocks-test-suite-execution/2545)

<div class="topic-metadata">

**Author:** [@agouaillard](https://discourse.cmake.org/u/agouaillard)\
**Replies:** 0\
**Last updated:** [January 14, 2021, 4:02pm UTC](https://discourse.cmake.org/t/win-command-within-add-test-never-returns-and-blocks-test-suite-execution/2545 "2021-01-14T16:02:36Z")

</div>

I have a simple command on windows that starts an appium server on a separate windows and return: start appium when I try to add the corresponding test, even going through the indirection of a script, the script works …

---

## [Apple Silicon Version of CMake.app](https://discourse.cmake.org/t/apple-silicon-version-of-cmake-app/2538)

<div class="topic-metadata">

**Author:** [@imikejackson](https://discourse.cmake.org/u/imikejackson)\
**Replies:** 3\
**Last updated:** [January 14, 2021, 3:07pm UTC](https://discourse.cmake.org/t/apple-silicon-version-of-cmake-app/2538 "2021-01-14T15:07:46Z")

</div>

I am developing on an Apple Silicon mac and it was nice to that CMake.app is now universal (3.19.3). This also means that the GUI app has an Apple Silicon version of the Qt5 libraries also. Our project is also dependent …

---

## [Source\_group does not support generator expression](https://discourse.cmake.org/t/source-group-does-not-support-generator-expression/2543)

<div class="topic-metadata">

**Author:** [@fluffymons](https://discourse.cmake.org/u/fluffymons)\
**Replies:** 1\
**Last updated:** [January 14, 2021, 1:35pm UTC](https://discourse.cmake.org/t/source-group-does-not-support-generator-expression/2543 "2021-01-14T13:35:20Z")

</div>

I’m trying to set up a tree in visual studio using source\_group. But i have some files that are exclusive to the windows build that are excluded through generator expression. However, when passing sourcefiles to gource\_g…

---

## [How about let compiler executes the preprocessor step.](https://discourse.cmake.org/t/how-about-let-compiler-executes-the-preprocessor-step/2533)

<div class="topic-metadata">

**Author:** [@dalianduzhi](https://discourse.cmake.org/u/dalianduzhi)\
**Replies:** 6\
**Last updated:** [January 14, 2021, 1:31pm UTC](https://discourse.cmake.org/t/how-about-let-compiler-executes-the-preprocessor-step/2533 "2021-01-14T13:31:09Z")

</div>

Hi I want to let the compiler executes the preprocessor and get the output. Can CMake do this without using the add\_custcom\_command? thanks

---

## [CMake support for Fujitsu compilers](https://discourse.cmake.org/t/cmake-support-for-fujitsu-compilers/2055)

<div class="topic-metadata">

**Author:** [@Sreepathi\_Sarat](https://discourse.cmake.org/u/Sreepathi_Sarat)\
**Replies:** 4\
**Last updated:** [January 14, 2021, 4:56am UTC](https://discourse.cmake.org/t/cmake-support-for-fujitsu-compilers/2055 "2021-01-14T04:56:29Z")

</div>

I’m trying to build CMake based applications on an Arm (A64FX) supercomputer (Fugaku) using Fujitsu compilers. Unfortunately, I’m running into several issues which essentially boil down to CMake not recognizing Fujitsu c…

---

## ["get\_property could not find TARGET clang-resource-headers" during -DCMAKE\_CXX\_FLAGS=-stdlib=libc++ '-DLLVM\_ENABLE\_RUNTIMES=compiler-rt;libcxx'](https://discourse.cmake.org/t/get-property-could-not-find-target-clang-resource-headers-during-dcmake-cxx-flags-stdlib-libc-dllvm-enable-runtimes-compiler-rt-libcxx/1624)

<div class="topic-metadata">

**Author:** [@Ivan\_Serdyuk](https://discourse.cmake.org/u/Ivan_Serdyuk)\
**Replies:** 3\
**Last updated:** [January 13, 2021, 8:25pm UTC](https://discourse.cmake.org/t/get-property-could-not-find-target-clang-resource-headers-during-dcmake-cxx-flags-stdlib-libc-dllvm-enable-runtimes-compiler-rt-libcxx/1624 "2021-01-13T20:25:31Z")

</div>

Kind a hi. I was trying to compile https://go.googlesource.com/gollvm/ using Clang’s C++ compiler and libc++ (instead of GCC and libstdc++ - this project is pretty much LLVM related, which itself means that it could rel…

---

## [Problems with compiling gollvm project (CMake version 3.18.0)](https://discourse.cmake.org/t/problems-with-compiling-gollvm-project-cmake-version-3-18-0/1576)

<div class="topic-metadata">

**Author:** [@Ivan\_Serdyuk](https://discourse.cmake.org/u/Ivan_Serdyuk)\
**Replies:** 2\
**Last updated:** [January 13, 2021, 8:24pm UTC](https://discourse.cmake.org/t/problems-with-compiling-gollvm-project-cmake-version-3-18-0/1576 "2021-01-13T20:24:23Z")

</div>

Hi. I am experiencing some issues, related to https://go.googlesource.com/gollvm/. C:\\Users\\Worker\\gollvm\\build-debug\>cmake -DCMAKE\_BUILD\_TYPE=Debug -DLLVM\_USE\_LINKER=gold -G Ninja …/llvm-project/llvm – The C compiler…

---

## [Run clang-tidy only?](https://discourse.cmake.org/t/run-clang-tidy-only/2537)

<div class="topic-metadata">

**Author:** [@RedDwarf](https://discourse.cmake.org/u/RedDwarf)\
**Replies:** 2\
**Last updated:** [January 13, 2021, 5:38pm UTC](https://discourse.cmake.org/t/run-clang-tidy-only/2537 "2021-01-13T17:38:04Z")

</div>

I have Jenkins running cmake with -DCMAKE\_C\_CLANG\_TIDY=clang-tidy -DCMAKE\_CXX\_CLANG\_TIDY=clang-tidy but, since the warnings format of clang-tidy is basically the same than the one from gcc/clang, the Jenkins Warnings NG …

---

## [Cmake compiler tool](https://discourse.cmake.org/t/cmake-compiler-tool/2496)

<div class="topic-metadata">

**Author:** [@Khalid\_Al-kuwity](https://discourse.cmake.org/u/Khalid_Al-kuwity)\
**Replies:** 11\
**Last updated:** [January 13, 2021, 4:10pm UTC](https://discourse.cmake.org/t/cmake-compiler-tool/2496 "2021-01-13T16:10:41Z")

</div>

I tried to confirm the cmake confirmation on iOS 11.1, but I get incomplete error because ((CMake Error at CMakeLists.txt:3 (project): The CMAKE\_CXX\_COMPILER: /Library/Developer/CommandLineTools/usr/bin/c++ is not a f…

---

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

<div class="topic-metadata">

**Author:** [@Tom\_Osika](https://discourse.cmake.org/u/Tom_Osika)\
**Replies:** 0\
**Last updated:** [January 13, 2021, 2:54pm UTC](https://discourse.cmake.org/t/cmake-3-19-3-available-for-download/2536 "2021-01-13T14:54:07Z")

</div>

We are pleased to announce that CMake 3.19.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.19.2: …

---

## [Enumerate all transitive dependencies of target?](https://discourse.cmake.org/t/enumerate-all-transitive-dependencies-of-target/2523)

<div class="topic-metadata">

**Author:** [@target.san](https://discourse.cmake.org/u/target.san)\
**Replies:** 2\
**Last updated:** [January 13, 2021, 6:41am UTC](https://discourse.cmake.org/t/enumerate-all-transitive-dependencies-of-target/2523 "2021-01-13T06:41:24Z")

</div>

Hello! Like some other developers, I need to copy external dependency DLLs to executable’s directory. I’ve checked this topic. Unfortunately, suggested solution doesn’t fit that well First of all, it lists all depende…

---

## [CMAKE\_MAKE\_PROGRAM 3.19 issue?](https://discourse.cmake.org/t/cmake-make-program-3-19-issue/2213)

<div class="topic-metadata">

**Author:** [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)\
**Replies:** 16\
**Last updated:** [January 12, 2021, 8:54pm UTC](https://discourse.cmake.org/t/cmake-make-program-3-19-issue/2213 "2021-01-12T20:54:14Z")

</div>

In my cmake toolchain I set the CMAKE\_MAKE\_PROGRAM. To clarify I was setting my ninja executable like this: if (CMAKE\_GENERATOR MATCHES "Ninja") # Force update the program to allow updating the ninja version …

---

## [Adding standard libraries to use for every link target](https://discourse.cmake.org/t/adding-standard-libraries-to-use-for-every-link-target/2519)

<div class="topic-metadata">

**Author:** [@Stephan268](https://discourse.cmake.org/u/Stephan268)\
**Replies:** 9\
**Last updated:** [January 12, 2021, 8:31pm UTC](https://discourse.cmake.org/t/adding-standard-libraries-to-use-for-every-link-target/2519 "2021-01-12T20:31:44Z")

</div>

I am attempting to build for Windows XP using VS 2015 on Windows 10. Several parts of the code require us to link against Microsofts psapi.lib in this “cross compilation” case. I have attempted to set (CMAKE\_C\_STANDARD…

---

## [Launching a daemon/service using CTest](https://discourse.cmake.org/t/launching-a-daemon-service-using-ctest/2515)

<div class="topic-metadata">

**Author:** [@agouaillard](https://discourse.cmake.org/u/agouaillard)\
**Replies:** 4\
**Last updated:** [January 12, 2021, 7:08pm UTC](https://discourse.cmake.org/t/launching-a-daemon-service-using-ctest/2515 "2021-01-12T19:08:35Z")

</div>

goal I’m trying to implement automatic testing of several native apps using Appium. The steps would be as follow for each app: configure the Appium node with name and path of executable start the Appium node run my …

---

## [How to find/manage Ninja?](https://discourse.cmake.org/t/how-to-find-manage-ninja/2518)

<div class="topic-metadata">

**Author:** [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)\
**Replies:** 5\
**Last updated:** [January 12, 2021, 6:50pm UTC](https://discourse.cmake.org/t/how-to-find-manage-ninja/2518 "2021-01-12T18:50:21Z")

</div>

I’m confused how I should find/manage Ninja. The easiest solution I have found is to simply add Ninja to my PATH. What are the alternatives to simply adding Ninja to my PATH? I don’t really like the idea of developers…

---

## [Share source folder with other cmake projects](https://discourse.cmake.org/t/share-source-folder-with-other-cmake-projects/2499)

<div class="topic-metadata">

**Author:** [@bugblatterbeast](https://discourse.cmake.org/u/bugblatterbeast)\
**Replies:** 3\
**Last updated:** [January 12, 2021, 5:11pm UTC](https://discourse.cmake.org/t/share-source-folder-with-other-cmake-projects/2499 "2021-01-12T17:11:32Z")

</div>

Hi, how can I set up a source folder that is shared between different cmake projects? I’d like to have a folder structure like that inside my repository Main application (CMake project) Data viewer tool (CMake projec…

---

## [Add new CmakePredefinedTarget: "CMAKE\_GUI"](https://discourse.cmake.org/t/add-new-cmakepredefinedtarget-cmake-gui/2512)

<div class="topic-metadata">

**Author:** [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)\
**Replies:** 8\
**Last updated:** [January 12, 2021, 4:15pm UTC](https://discourse.cmake.org/t/add-new-cmakepredefinedtarget-cmake-gui/2512 "2021-01-12T16:15:29Z")

</div>

Currently there are a couple of predefined targets for cmake in visual studio: I’d like 1 more for VS users. A simple custom target that just opens cmake-gui so that users don’t have to leave visual studio. It would…

---

## [How to deal with ld error: 'can not be used when making a PIE object; recompile with -fPIC'?](https://discourse.cmake.org/t/how-to-deal-with-ld-error-can-not-be-used-when-making-a-pie-object-recompile-with-fpic/2509)

<div class="topic-metadata">

**Author:** [@DavidA](https://discourse.cmake.org/u/DavidA)\
**Replies:** 3\
**Last updated:** [January 12, 2021, 4:04pm UTC](https://discourse.cmake.org/t/how-to-deal-with-ld-error-can-not-be-used-when-making-a-pie-object-recompile-with-fpic/2509 "2021-01-12T16:04:02Z")

</div>

Hi, I have built the 3rd party Accellera SystemC library using CMake on Centos 7 with devtoolset-7. I can successfully link my C++ application to that library, on the same platform. I also need to link my application …

---

## [Provide and select Find\*.cmake file](https://discourse.cmake.org/t/provide-and-select-find-cmake-file/2501)

<div class="topic-metadata">

**Author:** [@gruenich](https://discourse.cmake.org/u/gruenich)\
**Replies:** 3\
**Last updated:** [January 11, 2021, 7:48pm UTC](https://discourse.cmake.org/t/provide-and-select-find-cmake-file/2501 "2021-01-11T19:48:18Z")

</div>

CMake 3.20 will introduce Python3\_FIND\_UNVERSIONED\_NAMES and its evaluation are just a couple of lines from Modules/FindPython/Support.cmake. I need this change in my project but I cannot require CMake 3.20, I have to st…

---

## [Issue with TARGETS\_EXPORT\_NAME](https://discourse.cmake.org/t/issue-with-targets-export-name/2508)

<div class="topic-metadata">

**Author:** [@mrmsdbdl](https://discourse.cmake.org/u/mrmsdbdl)\
**Replies:** 4\
**Last updated:** [January 11, 2021, 4:57pm UTC](https://discourse.cmake.org/t/issue-with-targets-export-name/2508 "2021-01-11T16:57:04Z")

</div>

Hi, I’ve this random issue that I don’t really understand why it’s happening. So, while ago, I put some time and improved the mlpack CMake’s script, and I think for the most part I got everything right. But, every now a…

---

## [Poorly-explained cmake\_path() subcommands (CMake 3.19)](https://discourse.cmake.org/t/poorly-explained-cmake-path-subcommands-cmake-3-19/1861)

<div class="topic-metadata">

**Author:** [@ferdnyc](https://discourse.cmake.org/u/ferdnyc)\
**Replies:** 11\
**Last updated:** [January 10, 2021, 1:36am UTC](https://discourse.cmake.org/t/poorly-explained-cmake-path-subcommands-cmake-3-19/1861 "2021-01-10T01:36:34Z")

</div>

I was reading through the documentation for the upcoming cmake\_path() command that will replace most of the file(foo\_PATH ...) subcommands in the next release, and I’m finding some of them… both non-obvious, and unhelpfu…

---

## [Question about add\_custom\_command](https://discourse.cmake.org/t/question-about-add-custom-command/2489)

<div class="topic-metadata">

**Author:** [@ceanwang](https://discourse.cmake.org/u/ceanwang)\
**Replies:** 6\
**Last updated:** [January 9, 2021, 12:47am UTC](https://discourse.cmake.org/t/question-about-add-custom-command/2489 "2021-01-09T00:47:00Z")

</div>

Hi, I am building with cmake + gnu c/c++ (MINGW) under Windows 10. I use add\_custom\_command to let a program (the name is ‘fluid’) to compiler some other resource files. Like this: add\_custom\_command( OUTPUT “${basena…

---

## [Possible bug setting VS\_SETTINGS "ExcludedFromBuild=true" for Wavefornt obj files.](https://discourse.cmake.org/t/possible-bug-setting-vs-settings-excludedfrombuild-true-for-wavefornt-obj-files/2494)

<div class="topic-metadata">

**Author:** [@Manjot\_Bal](https://discourse.cmake.org/u/Manjot_Bal)\
**Replies:** 2\
**Last updated:** [January 8, 2021, 7:53pm UTC](https://discourse.cmake.org/t/possible-bug-setting-vs-settings-excludedfrombuild-true-for-wavefornt-obj-files/2494 "2021-01-08T19:53:24Z")

</div>

Hi, When I include a Wavefront obj file to my project and generate a Visual Studio solution, the generator labels the file as an obj file meant for the c++ linker. See the following from my .vcxproj file. This causes …

---

## [ctest 3.16 - tests don't timeout if there are remaining subprocesses](https://discourse.cmake.org/t/ctest-3-16-tests-dont-timeout-if-there-are-remaining-subprocesses/2493)

<div class="topic-metadata">

**Author:** [@Marc\_Legendre](https://discourse.cmake.org/u/Marc_Legendre)\
**Replies:** 3\
**Last updated:** [January 8, 2021, 10:38am UTC](https://discourse.cmake.org/t/ctest-3-16-tests-dont-timeout-if-there-are-remaining-subprocesses/2493 "2021-01-08T10:38:54Z")

</div>

Hi there, I noticed that ctest 3.16 fails to timeout tests if their main process has terminated, but there are still subprocesses running. (NB : Ubuntu 20.04 ships cmake 3.16.3) For example, here is a test script that …

---

## [What do the "dep" parameters of include\_external\_msproject() do?](https://discourse.cmake.org/t/what-do-the-dep-parameters-of-include-external-msproject-do/2490)

<div class="topic-metadata">

**Author:** [@Angew](https://discourse.cmake.org/u/Angew)\
**Replies:** 3\
**Last updated:** [January 8, 2021, 8:30am UTC](https://discourse.cmake.org/t/what-do-the-dep-parameters-of-include-external-msproject-do/2490 "2021-01-08T08:30:20Z")

</div>

The documentation of include\_external\_msproject() mentions parameters dep1 dep2 ... in the signature: include\_external\_msproject(projectname location \[TYPE projectTypeGUID\] …

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

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