# Latest

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

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

**Page:** 201

---

## [CMake 3.16.6 available for download](https://discourse.cmake.org/t/cmake-3-16-6-available-for-download/973)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [April 10, 2020, 3:21pm UTC](https://discourse.cmake.org/t/cmake-3-16-6-available-for-download/973 "2020-04-10T15:21:26Z")

</div>

We are pleased to announce that CMake 3.16.6 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.16.6 since 3.16.5: B…

---

## [\--parallel does not really enable parallel compiles with msbuild?](https://discourse.cmake.org/t/parallel-does-not-really-enable-parallel-compiles-with-msbuild/964)

<div class="topic-metadata">

**Author:** [@Rich\_von\_Lehe](https://discourse.cmake.org/u/Rich_von_Lehe)\
**Replies:** 11\
**Last updated:** [April 10, 2020, 3:18pm UTC](https://discourse.cmake.org/t/parallel-does-not-really-enable-parallel-compiles-with-msbuild/964 "2020-04-10T15:18:47Z")

</div>

Somebody warned me against using (or trusting) the --parallel option on the command line recently saying that it always sets cl\_mpcount to 1 when using msbuild. I tried and sure enough this is true. After reading what …

---

## [Seems about due for the vim completions to be updated again](https://discourse.cmake.org/t/seems-about-due-for-the-vim-completions-to-be-updated-again/970)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 1\
**Last updated:** [April 10, 2020, 12:34pm UTC](https://discourse.cmake.org/t/seems-about-due-for-the-vim-completions-to-be-updated-again/970 "2020-04-10T12:34:33Z")

</div>

@pboettch @brad.king A number of new variables and properties have been added to CMake since the last time the vim completions in Auxiliary/vim were updated. Is it time to re-run whatever script is used to update these …

---

## [Target with multiple interfaces](https://discourse.cmake.org/t/target-with-multiple-interfaces/957)

<div class="topic-metadata">

**Author:** [@rpoisel](https://discourse.cmake.org/u/rpoisel)\
**Replies:** 1\
**Last updated:** [April 9, 2020, 7:23pm UTC](https://discourse.cmake.org/t/target-with-multiple-interfaces/957 "2020-04-09T19:23:15Z")

</div>

I want to implement a CMake-based build system for the following architecture: As you can see: the Model component has two interfaces: ModelRead and ModelEdit. What is the preferred way to implement this architecture…

---

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

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [April 9, 2020, 5:49pm UTC](https://discourse.cmake.org/t/cmake-3-17-1-available-for-download/965 "2020-04-09T17:49:37Z")

</div>

We are pleased to announce that CMake 3.17.1 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.0: B…

---

## [Linux copying dependencies using file(GET\_RUNTIME\_DEPENDENCIES..)](https://discourse.cmake.org/t/linux-copying-dependencies-using-file-get-runtime-dependencies/946)

<div class="topic-metadata">

**Author:** [@Lerner](https://discourse.cmake.org/u/Lerner)\
**Replies:** 7\
**Last updated:** [April 9, 2020, 2:10pm UTC](https://discourse.cmake.org/t/linux-copying-dependencies-using-file-get-runtime-dependencies/946 "2020-04-09T14:10:03Z")

</div>

Hi there, I’m trying to make a simple OpenCV Linux application but it works only on OpenCV installed OS, so I wan’t to copy all of it’s dependencies into build folder via cmake to make it also work on the other computers…

---

## [How to get errors from 'install' command?](https://discourse.cmake.org/t/how-to-get-errors-from-install-command/956)

<div class="topic-metadata">

**Author:** [@JoeAB](https://discourse.cmake.org/u/JoeAB)\
**Replies:** 2\
**Last updated:** [April 9, 2020, 7:47am UTC](https://discourse.cmake.org/t/how-to-get-errors-from-install-command/956 "2020-04-09T07:47:15Z")

</div>

I want to copy a directory tree full of web files. It sounds as simple as install(DIRECTORY mydir/ DESTINATION dir/elsewhere) but it just not create a directory, copy any files or give an error or warning. How do I get…

---

## [find\_package does not find Boost](https://discourse.cmake.org/t/find-package-does-not-find-boost/509)

<div class="topic-metadata">

**Author:** [@JoeAB](https://discourse.cmake.org/u/JoeAB)\
**Replies:** 2\
**Last updated:** [April 7, 2020, 9:09pm UTC](https://discourse.cmake.org/t/find-package-does-not-find-boost/509 "2020-04-07T21:09:26Z")

</div>

Our project is building and running on Windows 7 and Ubuntu 16.04. I am now trying to cross compile it under licensed code, copying our project under the external directory. I added BOOST\_ROOT, BOOST\_INCLUDEDIR and Boost…

---

## [exporting target sources?](https://discourse.cmake.org/t/exporting-target-sources/948)

<div class="topic-metadata">

**Author:** [@hex](https://discourse.cmake.org/u/hex)\
**Replies:** 2\
**Last updated:** [April 7, 2020, 11:08am UTC](https://discourse.cmake.org/t/exporting-target-sources/948 "2020-04-07T11:08:35Z")

</div>

This is for custom build systems. I have sources that I need to prepare from one build system to another for reuse. Unfortunately, products from builds are incompatible to each other, meaning that each needs to build …

---

## [How to easily add CMake files to be visibile in IDE generators (Visual Studio)?](https://discourse.cmake.org/t/how-to-easily-add-cmake-files-to-be-visibile-in-ide-generators-visual-studio/937)

<div class="topic-metadata">

**Author:** [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)\
**Replies:** 4\
**Last updated:** [April 7, 2020, 10:56am UTC](https://discourse.cmake.org/t/how-to-easily-add-cmake-files-to-be-visibile-in-ide-generators-visual-studio/937 "2020-04-07T10:56:51Z")

</div>

Throughout my code base I have this re-ocurring pattern to provide friendly Visual Studio Support. target\_sources(foo PRIVATE # Add CMakeLists.txt so it shows up in Visual Studio generated projects CMakeLists.t…

---

## [Create target that only runs other target](https://discourse.cmake.org/t/create-target-that-only-runs-other-target/885)

<div class="topic-metadata">

**Author:** [@Leon0402](https://discourse.cmake.org/u/Leon0402)\
**Replies:** 6\
**Last updated:** [April 6, 2020, 3:52pm UTC](https://discourse.cmake.org/t/create-target-that-only-runs-other-target/885 "2020-04-06T15:52:22Z")

</div>

Hi everyone, I’m currently building a cmake for compiling and flashing microcontroller applications (avr). The important part looks like that: function(add\_avr\_executable targetName) add\_executable(${targetName} $…

---

## [Building MPICH as an external project results in an odd fortran error - FCMODOUTFLAG not detected.](https://discourse.cmake.org/t/building-mpich-as-an-external-project-results-in-an-odd-fortran-error-fcmodoutflag-not-detected/927)

<div class="topic-metadata">

**Author:** [@KBentley57](https://discourse.cmake.org/u/KBentley57)\
**Replies:** 1\
**Last updated:** [April 6, 2020, 3:29pm UTC](https://discourse.cmake.org/t/building-mpich-as-an-external-project-results-in-an-odd-fortran-error-fcmodoutflag-not-detected/927 "2020-04-06T15:29:58Z")

</div>

I’m building several packages of scientific software, for use in my program, and for the life of me, I can’t figure out the behavior I’m seeing. I am unsure that it’s a bug, per se, but something is awry, and I’m not su…

---

## [3.17.0 bug with Ninja](https://discourse.cmake.org/t/3-17-0-bug-with-ninja/901)

<div class="topic-metadata">

**Author:** [@powderluv](https://discourse.cmake.org/u/powderluv)\
**Replies:** 2\
**Last updated:** [April 6, 2020, 12:04pm UTC](https://discourse.cmake.org/t/3-17-0-bug-with-ninja/901 "2020-04-06T12:04:30Z")

</div>

I am running into an issue with 3.17.0 (installed from kitware ppa). When I use Ninja generator I see: ninja: error: ‘cmake\_object\_order\_depends\_target\_ittnotify\_’, needed by ‘cmake\_object\_order\_depends\_target\_fooib\_’, …

---

## [Getting CMake to detect a new CXX Compiler (CXX\_COMPILER\_ID) without modying CMake's source](https://discourse.cmake.org/t/getting-cmake-to-detect-a-new-cxx-compiler-cxx-compiler-id-without-modying-cmakes-source/916)

<div class="topic-metadata">

**Author:** [@seanbaxter](https://discourse.cmake.org/u/seanbaxter)\
**Replies:** 3\
**Last updated:** [April 3, 2020, 3:02pm UTC](https://discourse.cmake.org/t/getting-cmake-to-detect-a-new-cxx-compiler-cxx-compiler-id-without-modying-cmakes-source/916 "2020-04-03T15:02:06Z")

</div>

I wrote a new C++ compiler and am trying to get it to work with CMake. Setting CMAKE\_CXX\_COMPILER to my compiler’s path is fine: the right compiler gets invoked. The problem is CMakeDetermineCompilerId always detects my…

---

## [CODE: math(OUTPUT\_FORMAT HEXADECIMAL) workaround for CMake \< 3.13](https://discourse.cmake.org/t/code-math-output-format-hexadecimal-workaround-for-cmake-3-13/924)

<div class="topic-metadata">

**Author:** [@ferdnyc](https://discourse.cmake.org/u/ferdnyc)\
**Replies:** 4\
**Last updated:** [April 2, 2020, 9:58pm UTC](https://discourse.cmake.org/t/code-math-output-format-hexadecimal-workaround-for-cmake-3-13/924 "2020-04-02T21:58:51Z")

</div>

One of our CMake projects includes a GENERATED config file that needs to include the project version converted into hexadecimal form. With CMake 3.13+, easy-peasy: math(EXPR PROJECT\_VERSION\_HEX "(${PROJECT\_VERSION…

---

## [Make miss dependencies when add\_custom\_command depends on add\_custom\_target or add\_custom\_command](https://discourse.cmake.org/t/make-miss-dependencies-when-add-custom-command-depends-on-add-custom-target-or-add-custom-command/835)

<div class="topic-metadata">

**Author:** [@amurzeau](https://discourse.cmake.org/u/amurzeau)\
**Replies:** 16\
**Last updated:** [April 2, 2020, 9:30pm UTC](https://discourse.cmake.org/t/make-miss-dependencies-when-add-custom-command-depends-on-add-custom-target-or-add-custom-command/835 "2020-04-02T21:30:54Z")

</div>

Hi, When in a subdirectory’s CMakeLists.txt, I have: add\_custom\_command( OUTPUT ${TEST\_OUTPUT} COMMAND ${CMAKE\_COMMAND} -E copy ${TEST\_INPUT} ${TEST\_OUTPUT} DEPENDS ${TEST\_INPUT} ) add\_custom\_target(gen\_test\_file DE…

---

## [How to customize install, install/local and install/strip?](https://discourse.cmake.org/t/how-to-customize-install-install-local-and-install-strip/934)

<div class="topic-metadata">

**Author:** [@Xaymar](https://discourse.cmake.org/u/Xaymar)\
**Replies:** 2\
**Last updated:** [April 2, 2020, 8:16pm UTC](https://discourse.cmake.org/t/how-to-customize-install-install-local-and-install-strip/934 "2020-04-02T20:16:13Z")

</div>

When generating projects for linux using one of the makefile generators, there are multiple install targets, all which currently do the exact same thing. How do I configure each of these to install different files, if at…

---

## [Build files not written to current directory](https://discourse.cmake.org/t/build-files-not-written-to-current-directory/925)

<div class="topic-metadata">

**Author:** [@DavidA](https://discourse.cmake.org/u/DavidA)\
**Replies:** 1\
**Last updated:** [April 2, 2020, 2:27pm UTC](https://discourse.cmake.org/t/build-files-not-written-to-current-directory/925 "2020-04-02T14:27:08Z")

</div>

I have: sdk/CMakeLists.txt and I invoke: cd sdk/myBuild cmake -G “Unix Makefiles” -DISA\_AVX512=1 -DCMAKE\_BUILD\_TYPE=Release -DCMAKE\_TOOLCHAIN\_FILE=/opt/flexran/y/sdk/cmake/toolchain-intel-linux.cmake … (there are t…

---

## [Building C++20 Modules](https://discourse.cmake.org/t/building-c-20-modules/898)

<div class="topic-metadata">

**Author:** [@amaclean](https://discourse.cmake.org/u/amaclean)\
**Replies:** 2\
**Last updated:** [April 2, 2020, 10:25am UTC](https://discourse.cmake.org/t/building-c-20-modules/898 "2020-04-02T10:25:40Z")

</div>

Is there a general way to tell the linker that .mpp is a CXX extension? I downloaded cxx-modules-sandbox and I was able to successfully build it by code like this after ever add\_library: set\_target\_properties(simple P…

---

## [Some trouble in configuring cmake when using the libigl](https://discourse.cmake.org/t/some-trouble-in-configuring-cmake-when-using-the-libigl/715)

<div class="topic-metadata">

**Author:** [@Mushroom-turtle](https://discourse.cmake.org/u/Mushroom-turtle)\
**Replies:** 3\
**Last updated:** [April 2, 2020, 10:24am UTC](https://discourse.cmake.org/t/some-trouble-in-configuring-cmake-when-using-the-libigl/715 "2020-04-02T10:24:29Z")

</div>

During the process of cmake configuration, there’s an error stating “error in configuration process, project files may be invalid”. It would be deeply appreciated if anyone can help me out.

---

## [How to install an external project?](https://discourse.cmake.org/t/how-to-install-an-external-project/888)

<div class="topic-metadata">

**Author:** [@ajm](https://discourse.cmake.org/u/ajm)\
**Replies:** 11\
**Last updated:** [April 2, 2020, 7:39am UTC](https://discourse.cmake.org/t/how-to-install-an-external-project/888 "2020-04-02T07:39:54Z")

</div>

Problem: Installing an external project I am looking to have CMake clone and build a git repository as an ExternalProject, then package in the resulting binary files with the main project. The documentation for External…

---

## [Woraround to overcome badly designed config packaging with imported target names = library names](https://discourse.cmake.org/t/woraround-to-overcome-badly-designed-config-packaging-with-imported-target-names-library-names/893)

<div class="topic-metadata">

**Author:** [@airwin](https://discourse.cmake.org/u/airwin)\
**Replies:** 2\
**Last updated:** [April 1, 2020, 9:04pm UTC](https://discourse.cmake.org/t/woraround-to-overcome-badly-designed-config-packaging-with-imported-target-names-library-names/893 "2020-04-01T21:04:59Z")

</div>

One such badly designed package is the lapack software where those developers (still as of the latest version, 3.9.0) do not use the NAMESPACE option to install(EXPORT…) to set, e.g., a LAPACK:: namespace on the impor…

---

## [Installing a symlink with a relative path for RPM](https://discourse.cmake.org/t/installing-a-symlink-with-a-relative-path-for-rpm/895)

<div class="topic-metadata">

**Author:** [@atn34](https://discourse.cmake.org/u/atn34)\
**Replies:** 5\
**Last updated:** [April 1, 2020, 5:55pm UTC](https://discourse.cmake.org/t/installing-a-symlink-with-a-relative-path-for-rpm/895 "2020-04-01T17:55:57Z")

</div>

$ cat CMakeLists.txt cmake\_minimum\_required(VERSION 3.14) set(CPACK\_PACKAGING\_INSTALL\_PREFIX "/") execute\_process(COMMAND ${CMAKE\_COMMAND} -E touch ${CMAKE\_BINARY\_DIR}/foo) install(FILES ${CMAKE\_BINARY\_DIR}/foo DESTINATI…

---

## [ExternalProject Build Byproduct Path](https://discourse.cmake.org/t/externalproject-build-byproduct-path/775)

<div class="topic-metadata">

**Author:** [@dMaggot](https://discourse.cmake.org/u/dMaggot)\
**Replies:** 5\
**Last updated:** [April 1, 2020, 5:54pm UTC](https://discourse.cmake.org/t/externalproject-build-byproduct-path/775 "2020-04-01T17:54:35Z")

</div>

I am using the ExternalProject for two projects and in both cases I need to list build byproducts. The problem is that in both cases I need to list them relative to the build. Thinking about this, it makes little sense t…

---

## [Removal of pre-2017 official cmake.git repository](https://discourse.cmake.org/t/removal-of-pre-2017-official-cmake-git-repository/478)

<div class="topic-metadata">

**Author:** [@brad.king](https://discourse.cmake.org/u/brad.king)\
**Replies:** 1\
**Last updated:** [April 1, 2020, 1:20pm UTC](https://discourse.cmake.org/t/removal-of-pre-2017-official-cmake-git-repository/478 "2020-04-01T13:20:57Z")

</div>

The official CMake Git repository was moved in 2017 from https://cmake.org/cmake.git to https://gitlab.kitware.com/cmake/cmake.git as part of the transition to development on GitLab. The old repository was left as a mir…

---

## [User defined policies](https://discourse.cmake.org/t/user-defined-policies/899)

<div class="topic-metadata">

**Author:** [@zaufi](https://discourse.cmake.org/u/zaufi)\
**Replies:** 4\
**Last updated:** [April 1, 2020, 12:19pm UTC](https://discourse.cmake.org/t/user-defined-policies/899 "2020-04-01T12:19:07Z")

</div>

Hi, I have a quite big CMake “framework” used internally in many projects. Now I faced w/ necessity to have smth similar to CMake’s policies – e.g., I want to change behavior of some functions in a backward-compatible w…

---

## [cmake problems with MSBuild.exe](https://discourse.cmake.org/t/cmake-problems-with-msbuild-exe/875)

<div class="topic-metadata">

**Author:** [@userJB](https://discourse.cmake.org/u/userJB)\
**Replies:** 15\
**Last updated:** [March 31, 2020, 7:46pm UTC](https://discourse.cmake.org/t/cmake-problems-with-msbuild-exe/875 "2020-03-31T19:46:39Z")

</div>

have problems with cmake on Windows 10. I pruned things to the smallest example that will generate the same errors. I run cmake from the Windows command prompt (the same problem occurs with the git bash command-line inte…

---

## [library RPATH resolution](https://discourse.cmake.org/t/library-rpath-resolution/887)

<div class="topic-metadata">

**Author:** [@OlegWorld](https://discourse.cmake.org/u/OlegWorld)\
**Replies:** 6\
**Last updated:** [March 31, 2020, 12:27pm UTC](https://discourse.cmake.org/t/library-rpath-resolution/887 "2020-03-31T12:27:41Z")

</div>

Let’s say we have a library A, which depends on library B. Library A is built using cmake and library B is linked to it publicly using target\_link\_libraries(…) Now i want to build an executable target, which depends on …

---

## [empty output on build command](https://discourse.cmake.org/t/empty-output-on-build-command/859)

<div class="topic-metadata">

**Author:** [@amigo421](https://discourse.cmake.org/u/amigo421)\
**Replies:** 2\
**Last updated:** [March 31, 2020, 10:24am UTC](https://discourse.cmake.org/t/empty-output-on-build-command/859 "2020-03-31T10:24:29Z")

</div>

platform: Win10 cmake: 3.17 compiler: msvc2019 generator : NMake Makefiles - CodeBlocks sources: simple main.c with printf Hello World (no third-pathy libraries) I inserted one simple typo to make the source wrong -…

---

## [Preventing "In-Source Builds"](https://discourse.cmake.org/t/preventing-in-source-builds/881)

<div class="topic-metadata">

**Author:** [@anon45792294](https://discourse.cmake.org/u/anon45792294)\
**Replies:** 1\
**Last updated:** [March 30, 2020, 12:38pm UTC](https://discourse.cmake.org/t/preventing-in-source-builds/881 "2020-03-30T12:38:11Z")

</div>

In source builds are usually never desire by developers. “Professional Cmake - A Practial Guide, by Craig Scott” also discourages the practice (Chapter 2.5). At my company I’ve noticed this function repeated in many ma…

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

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