# Latest

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

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

**Page:** 209

---

## [permission problem when installing files while I do have write permission](https://discourse.cmake.org/t/permission-problem-when-installing-files-while-i-do-have-write-permission/292)

<div class="topic-metadata">

**Author:** [@KrisThielemans](https://discourse.cmake.org/u/KrisThielemans)\
**Replies:** 1\
**Last updated:** [December 4, 2019, 2:24pm UTC](https://discourse.cmake.org/t/permission-problem-when-installing-files-while-i-do-have-write-permission/292 "2019-12-04T14:24:08Z")

</div>

Hi I’m trying to install files in a directory (let’s call it /install) where I have write permissions, but that we share with people in the same “group” Doing “make install” runs fine until I get CMake Error at src/cm…

---

## [Newer CMake v. 3.12.4 v. OP25 project](https://discourse.cmake.org/t/newer-cmake-v-3-12-4-v-op25-project/320)

<div class="topic-metadata">

**Author:** [@op25](https://discourse.cmake.org/u/op25)\
**Replies:** 4\
**Last updated:** [December 4, 2019, 1:59pm UTC](https://discourse.cmake.org/t/newer-cmake-v-3-12-4-v-op25-project/320 "2019-12-04T13:59:37Z")

</div>

Many users are following tutorials/HOWTO/FAQ’s etc. on installing the OP25 radio software for use with SDR’s… http://osmocom.org/issues/4225 OP25 Project: https://github.com/boatbod/op25 https://github.com/boatbod/o…

---

## [Message hidden because considered SPAM?](https://discourse.cmake.org/t/message-hidden-because-considered-spam/301)

<div class="topic-metadata">

**Author:** [@erk](https://discourse.cmake.org/u/erk)\
**Replies:** 3\
**Last updated:** [December 2, 2019, 6:42pm UTC](https://discourse.cmake.org/t/message-hidden-because-considered-spam/301 "2019-12-02T18:42:53Z")

</div>

HI there, Three messages I posted recently were “hidden” because considered as SPAM? with explanation like: Hello, This is an automated message from CMake Discourse to let you know that your post was hidden. Your po…

---

## [file GET\_RUNTIME\_DEPENDENCIES - cannot access variables](https://discourse.cmake.org/t/file-get-runtime-dependencies-cannot-access-variables/278)

<div class="topic-metadata">

**Author:** [@tgq](https://discourse.cmake.org/u/tgq)\
**Replies:** 7\
**Last updated:** [December 2, 2019, 3:15pm UTC](https://discourse.cmake.org/t/file-get-runtime-dependencies-cannot-access-variables/278 "2019-12-02T15:15:48Z")

</div>

Hello. I am checking out this new feature but it seems like I cannot print out the dependencies. The part of my cmake script is install(CODE "file(GET\_RUNTIME\_DEPENDENCIES RESOLVED\_DEPENDENCIES\_V…

---

## [FindXXX semantic: \_FIND\_REQUIRED and \_FIND\_QUIETLY](https://discourse.cmake.org/t/findxxx-semantic-find-required-and-find-quietly/285)

<div class="topic-metadata">

**Author:** [@serghei](https://discourse.cmake.org/u/serghei)\
**Replies:** 1\
**Last updated:** [December 2, 2019, 12:54pm UTC](https://discourse.cmake.org/t/findxxx-semantic-find-required-and-find-quietly/285 "2019-12-02T12:54:31Z")

</div>

. Sometimes I face the following semantics in the findXXX modules. And to be honestly not quite understand what happens here: include(FindPackageHandleStandardArgs) set(\_pkg ${CMAKE\_FIND\_PACKAGE\_NAME) if(${\_pkg}\_FIND…

---

## [CMAKE\_C\_LINK\_EXECUTABLE not considered for MINGW32](https://discourse.cmake.org/t/cmake-c-link-executable-not-considered-for-mingw32/254)

<div class="topic-metadata">

**Author:** [@rpoisel](https://discourse.cmake.org/u/rpoisel)\
**Replies:** 3\
**Last updated:** [November 26, 2019, 8:22am UTC](https://discourse.cmake.org/t/cmake-c-link-executable-not-considered-for-mingw32/254 "2019-11-26T08:22:29Z")

</div>

Hi, I am trying to specify the CMAKE\_C\_LINK\_EXECUTABLE and the CMAKE\_CXX\_LINK\_EXECUTABLE variables in one of my toolchain files targetting MINGW32. Any value specified for these two variables gets overwritten and there…

---

## [How to use find\_library correctly?](https://discourse.cmake.org/t/how-to-use-find-library-correctly/280)

<div class="topic-metadata">

**Author:** [@matwey](https://discourse.cmake.org/u/matwey)\
**Replies:** 3\
**Last updated:** [November 28, 2019, 2:51pm UTC](https://discourse.cmake.org/t/how-to-use-find-library-correctly/280 "2019-11-28T14:51:20Z")

</div>

Hello, I am trying to reuse existing FindCheck.cmake module in my project. However, it appears that Ubuntu, for instance, provides only static libcheck.a library in the system package. FindCheck.cmake uses find\_library …

---

## [PDF documentation](https://discourse.cmake.org/t/pdf-documentation/293)

<div class="topic-metadata">

**Author:** [@Phi](https://discourse.cmake.org/u/Phi)\
**Replies:** 1\
**Last updated:** [December 2, 2019, 8:30am UTC](https://discourse.cmake.org/t/pdf-documentation/293 "2019-12-02T08:30:44Z")

</div>

HI, Is there a .pdf documentation somewhere (didn’t find it), or is there a way to build it ‘easily’. The rationale is to be able to browse the docco, beside beeing able to put it off line on my tablet and read it on th…

---

## [CMAKE\_EXPORT\_COMPILE\_COMMANDS does not list assembly code files in the generated json file](https://discourse.cmake.org/t/cmake-export-compile-commands-does-not-list-assembly-code-files-in-the-generated-json-file/283)

<div class="topic-metadata">

**Author:** [@oscarh](https://discourse.cmake.org/u/oscarh)\
**Replies:** 2\
**Last updated:** [December 2, 2019, 7:24am UTC](https://discourse.cmake.org/t/cmake-export-compile-commands-does-not-list-assembly-code-files-in-the-generated-json-file/283 "2019-12-02T07:24:55Z")

</div>

My project has both C and ASM source files. With -DCMAKE\_EXPORT\_COMPILE\_COMMANDS=ON from the command line, a compile\_commands.json file is generated with all C source files listed in it, but none of ASM files are listed.…

---

## [Hard time understanding depencies/action mechanism](https://discourse.cmake.org/t/hard-time-understanding-depencies-action-mechanism/290)

<div class="topic-metadata">

**Author:** [@Phi](https://discourse.cmake.org/u/Phi)\
**Replies:** 2\
**Last updated:** [December 1, 2019, 5:07pm UTC](https://discourse.cmake.org/t/hard-time-understanding-depencies-action-mechanism/290 "2019-12-01T17:07:44Z")

</div>

Hi All, New to cmake, trying to migrate a big project from make to cmake. At the moment I try to understand how dependencies works. I posted this on stackoverflow with very few views and no valid answers, may be posti…

---

## [CMake 3.16.0 available for download](https://discourse.cmake.org/t/cmake-3-16-0-available-for-download/262)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 1\
**Last updated:** [November 30, 2019, 12:41am UTC](https://discourse.cmake.org/t/cmake-3-16-0-available-for-download/262 "2019-11-30T00:41:05Z")

</div>

I am happy to announce that CMake 3.16.0 is now available for download at: https://cmake.org/download/ Documentation is available at: https://cmake.org/cmake/help/v3.16 Release notes appear below and are also publish…

---

## [LaTeX (and documents) as first-class citizen](https://discourse.cmake.org/t/latex-and-documents-as-first-class-citizen/248)

<div class="topic-metadata">

**Author:** [@MathiasMagnus](https://discourse.cmake.org/u/MathiasMagnus)\
**Replies:** 2\
**Last updated:** [November 28, 2019, 8:53pm UTC](https://discourse.cmake.org/t/latex-and-documents-as-first-class-citizen/248 "2019-11-28T20:53:06Z")

</div>

Hi! Google does lead me astray on this, as I’m sure this has been brough up multiple times, but does anyone know the history of LaTeX as a language understood by CMake? As with all languages, when not explicitly suppor…

---

## [How to deal with Ninja setting CMAKE\_BUILD\_TYPE to Debug?](https://discourse.cmake.org/t/how-to-deal-with-ninja-setting-cmake-build-type-to-debug/281)

<div class="topic-metadata">

**Author:** [@DavidA](https://discourse.cmake.org/u/DavidA)\
**Replies:** 4\
**Last updated:** [November 28, 2019, 3:20pm UTC](https://discourse.cmake.org/t/how-to-deal-with-ninja-setting-cmake-build-type-to-debug/281 "2019-11-28T15:20:55Z")

</div>

I am running CMake 3.14.5 on Windows with Ninja and MSVC compiler. I am also building the same project on Linux using Ninja. As suggested by CMake and the Default Build Type I set the build type to Release if it has not…

---

## [How to cpack dependent shared libraries along with my executable?](https://discourse.cmake.org/t/how-to-cpack-dependent-shared-libraries-along-with-my-executable/267)

<div class="topic-metadata">

**Author:** [@oscarh](https://discourse.cmake.org/u/oscarh)\
**Replies:** 2\
**Last updated:** [November 27, 2019, 11:15pm UTC](https://discourse.cmake.org/t/how-to-cpack-dependent-shared-libraries-along-with-my-executable/267 "2019-11-27T23:15:53Z")

</div>

I have a cmake project which builds an executable. The executable depends on a 3rd party .so file to run: … add\_executable(myapp …) target\_link\_libraries(myapp ${3rd\_party\_so}) #install rules: set(CMAKE\_INSTALL\_PR…

---

## [How to force 64-bit build using Ninja on Windows?](https://discourse.cmake.org/t/how-to-force-64-bit-build-using-ninja-on-windows/271)

<div class="topic-metadata">

**Author:** [@DavidA](https://discourse.cmake.org/u/DavidA)\
**Replies:** 1\
**Last updated:** [November 27, 2019, 1:24pm UTC](https://discourse.cmake.org/t/how-to-force-64-bit-build-using-ninja-on-windows/271 "2019-11-27T13:24:37Z")

</div>

I have two x64 Windows machines. One has Visual Studio Build Tools 2017 installed, the other has Visual Studio Build Tools 2019 installed. On the machine with Visual Studio Build Tools 2019 I see: \>cmake -G Ninja .. --…

---

## [How does CMAKE\_VS\_WINDOWS\_TARGET\_PLATFORM\_VERSION work?](https://discourse.cmake.org/t/how-does-cmake-vs-windows-target-platform-version-work/260)

<div class="topic-metadata">

**Author:** [@djspringate](https://discourse.cmake.org/u/djspringate)\
**Replies:** 4\
**Last updated:** [November 26, 2019, 6:12pm UTC](https://discourse.cmake.org/t/how-does-cmake-vs-windows-target-platform-version-work/260 "2019-11-26T18:12:06Z")

</div>

CMAKE\_VS\_WINDOWS\_TARGET\_PLATFORM\_VERSION I’m running Windows 10 Home 1903 (OS Build 18362.46). My C:\\Program Files (x86)\\Windows Kits\\10\\Lib folder contains: 10.0.16299.0 10.0.17134.0 10.0.17763.0 No matter what I …

---

## [Debian 9, getting cmake-3.9 or above](https://discourse.cmake.org/t/debian-9-getting-cmake-3-9-or-above/251)

<div class="topic-metadata">

**Author:** [@Christian\_Koberg](https://discourse.cmake.org/u/Christian_Koberg)\
**Replies:** 2\
**Last updated:** [November 25, 2019, 1:35pm UTC](https://discourse.cmake.org/t/debian-9-getting-cmake-3-9-or-above/251 "2019-11-25T13:35:55Z")

</div>

I am running Debian 9 an need cmake v3.9 or higher. Debian 9 has a package of cmake v3.7. I go to the page https://cmake.org/install/ and download cmake-3.15.5.tar.gz source. First i followed your instructions: Or, …

---

## [FindGTest on windows with debug build](https://discourse.cmake.org/t/findgtest-on-windows-with-debug-build/239)

<div class="topic-metadata">

**Author:** [@smallzzy](https://discourse.cmake.org/u/smallzzy)\
**Replies:** 2\
**Last updated:** [November 22, 2019, 11:43pm UTC](https://discourse.cmake.org/t/findgtest-on-windows-with-debug-build/239 "2019-11-22T23:43:15Z")

</div>

I have built the googletest lib on windows with debug mode. It will generate gtestd.lib and gtest\_maind.lib. But find\_package(GTest) will fail to find them because of the suffix “d”. I think the problem lies in the Fi…

---

## [Versioning for JSON file used with \`ctest --resource-spec-file\`](https://discourse.cmake.org/t/versioning-for-json-file-used-with-ctest-resource-spec-file/208)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 5\
**Last updated:** [November 22, 2019, 6:13pm UTC](https://discourse.cmake.org/t/versioning-for-json-file-used-with-ctest-resource-spec-file/208 "2019-11-22T18:13:08Z")

</div>

@kyle.edwards I’m wondering if it might be wise to somehow incorporate a protocol or version number in the JSON file used for test resource allocation. If we ever need to change the information given in that file, it wou…

---

## [Generate lots of files and folder @ build-time](https://discourse.cmake.org/t/generate-lots-of-files-and-folder-build-time/226)

<div class="topic-metadata">

**Author:** [@Milosz\_Walter](https://discourse.cmake.org/u/Milosz_Walter)\
**Replies:** 2\
**Last updated:** [November 20, 2019, 7:53am UTC](https://discourse.cmake.org/t/generate-lots-of-files-and-folder-build-time/226 "2019-11-20T07:53:45Z")

</div>

Hi All, I’m currently refactoring an old CMake infrastructure which used to generate huge amount of source folders and source files @cmake-config step using several different scripts. I have to move them into the buil…

---

## [Can you combine FetchContent and ExternalProject?](https://discourse.cmake.org/t/can-you-combine-fetchcontent-and-externalproject/228)

<div class="topic-metadata">

**Author:** [@mathomp4](https://discourse.cmake.org/u/mathomp4)\
**Replies:** 2\
**Last updated:** [November 19, 2019, 5:57pm UTC](https://discourse.cmake.org/t/can-you-combine-fetchcontent-and-externalproject/228 "2019-11-19T17:57:21Z")

</div>

A query for the experts. I’m trying to transition building a set of base libraries currently done with GNU Make to CMake. Now, I’m having fairly good luck with ExternalProject\_Add, but I have only one issue with that: do…

---

## [mscoree.lib not found when compiling C++/CLI project with CMake using Build Tools](https://discourse.cmake.org/t/mscoree-lib-not-found-when-compiling-c-cli-project-with-cmake-using-build-tools/234)

<div class="topic-metadata">

**Author:** [@Kerstin\_Keller](https://discourse.cmake.org/u/Kerstin_Keller)\
**Replies:** 0\
**Last updated:** [November 19, 2019, 5:03pm UTC](https://discourse.cmake.org/t/mscoree-lib-not-found-when-compiling-c-cli-project-with-cmake-using-build-tools/234 "2019-11-19T17:03:32Z")

</div>

I am not quite sure if this issue is a CMake or a VS2019 Build Tools error: I am trying to build a C++/CLI application using CMake and only the Visual Studio 2019 Build Tools installed. Pure C++ applications I can comp…

---

## [Project variants?](https://discourse.cmake.org/t/project-variants/205)

<div class="topic-metadata">

**Author:** [@DavidA](https://discourse.cmake.org/u/DavidA)\
**Replies:** 10\
**Last updated:** [November 19, 2019, 10:26am UTC](https://discourse.cmake.org/t/project-variants/205 "2019-11-19T10:26:46Z")

</div>

Hi, I’ve just created my first full-scale CMake project, but I have a lot to learn. My project builds an executable and a set of shared libraries. The build of each shared library is enabled by a CMake option. I’m now …

---

## [CMake 3.16.0-rc4 is ready for testing](https://discourse.cmake.org/t/cmake-3-16-0-rc4-is-ready-for-testing/231)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [November 18, 2019, 11:55pm UTC](https://discourse.cmake.org/t/cmake-3-16-0-rc4-is-ready-for-testing/231 "2019-11-18T23:55:08Z")

</div>

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

---

## [How do I add depencies on header file to custom target](https://discourse.cmake.org/t/how-do-i-add-depencies-on-header-file-to-custom-target/218)

<div class="topic-metadata">

**Author:** [@nickez](https://discourse.cmake.org/u/nickez)\
**Replies:** 2\
**Last updated:** [November 18, 2019, 8:11pm UTC](https://discourse.cmake.org/t/how-do-i-add-depencies-on-header-file-to-custom-target/218 "2019-11-18T20:11:39Z")

</div>

Hey, How do I add a dependency of a header file to a custom target? Basically I have a header file that contains a few header files. And I want to add all the transitive dependencies to a custom target. It seems like i…

---

## [C++ standard library extensions](https://discourse.cmake.org/t/c-standard-library-extensions/206)

<div class="topic-metadata">

**Author:** [@marc.chevrier](https://discourse.cmake.org/u/marc.chevrier)\
**Replies:** 6\
**Last updated:** [November 18, 2019, 4:53pm UTC](https://discourse.cmake.org/t/c-standard-library-extensions/206 "2019-11-18T16:53:03Z")

</div>

Currently, C++ standard library headers usage for CMake is normalized through the directory prefix cm. For example: #include \<cm/memory\>. But, there is no clear approach regarding extensions to the standard library. For…

---

## [CPack/NSIS Generator Issues](https://discourse.cmake.org/t/cpack-nsis-generator-issues/209)

<div class="topic-metadata">

**Author:** [@Ravi\_Ramaseshan](https://discourse.cmake.org/u/Ravi_Ramaseshan)\
**Replies:** 2\
**Last updated:** [November 18, 2019, 3:23pm UTC](https://discourse.cmake.org/t/cpack-nsis-generator-issues/209 "2019-11-18T15:23:22Z")

</div>

Problem 1: I think there might be an issue with CPack’s NSIS generator where if the components (specified through CPACK\_COMPONENTS\_ALL contains a-\` (eg. llvm-nm, llvm-libtool) then the generator creates variables with t…

---

## [Using CMake for framework with main() in dynamic library](https://discourse.cmake.org/t/using-cmake-for-framework-with-main-in-dynamic-library/187)

<div class="topic-metadata">

**Author:** [@eof](https://discourse.cmake.org/u/eof)\
**Replies:** 2\
**Last updated:** [November 15, 2019, 6:52pm UTC](https://discourse.cmake.org/t/using-cmake-for-framework-with-main-in-dynamic-library/187 "2019-11-15T18:52:36Z")

</div>

I’m building a framework that needs to use CUDA internally, which is currently annoyingly complicated to use with Bazel, which is the build system I’m very familiar with. For this reason as well as wider compatibility, I…

---

## [Visual studio update 15.9.17 breaks CUDA support](https://discourse.cmake.org/t/visual-studio-update-15-9-17-breaks-cuda-support/214)

<div class="topic-metadata">

**Author:** [@mgagnon](https://discourse.cmake.org/u/mgagnon)\
**Replies:** 1\
**Last updated:** [November 15, 2019, 2:55pm UTC](https://discourse.cmake.org/t/visual-studio-update-15-9-17-breaks-cuda-support/214 "2019-11-15T14:55:48Z")

</div>

After the 15.9.17 update of Visual studio 2017 Professionnal, CMAKE was no longer able to find CUDA on my computer. I figured out that the 15 9.17 update had created a new folder named C:\\Program Files (x86)\\Microsoft …

---

## [Ninja generator, add\_custom\_command and conditional statements](https://discourse.cmake.org/t/ninja-generator-add-custom-command-and-conditional-statements/200)

<div class="topic-metadata">

**Author:** [@UmberGryphon](https://discourse.cmake.org/u/UmberGryphon)\
**Replies:** 6\
**Last updated:** [November 15, 2019, 1:32pm UTC](https://discourse.cmake.org/t/ninja-generator-add-custom-command-and-conditional-statements/200 "2019-11-15T13:32:22Z")

</div>

I am trying to create a command that will copy a data directory from my source directory to my build directory so that it will be grabbed when I package up a build into a zip file. For Windows, my custom command looks l…

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

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