# Latest

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

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

**Page:** 208

---

## [Linking multiarch libraries in cross-compilation toolchain](https://discourse.cmake.org/t/linking-multiarch-libraries-in-cross-compilation-toolchain/415)

<div class="topic-metadata">

**Author:** [@tambre](https://discourse.cmake.org/u/tambre)\
**Replies:** 6\
**Last updated:** [December 19, 2019, 12:52pm UTC](https://discourse.cmake.org/t/linking-multiarch-libraries-in-cross-compilation-toolchain/415 "2019-12-19T12:52:32Z")

</div>

I’m creating a toolchain for cross-compiling on x64 for an ARM64 device. I find some libraries using PkgConfig in the actual application and in the final linking command they’re linked like -lglib-2.0. Unfortunately thi…

---

## [File API and exports](https://discourse.cmake.org/t/file-api-and-exports/411)

<div class="topic-metadata">

**Author:** [@Kerstin\_Keller](https://discourse.cmake.org/u/Kerstin_Keller)\
**Replies:** 2\
**Last updated:** [December 19, 2019, 12:23pm UTC](https://discourse.cmake.org/t/file-api-and-exports/411 "2019-12-19T12:23:39Z")

</div>

Hi, I know the file API’s purpose is intended mainly for IDE’s. However I wonder if CMake also exposes the install targets via the file API? Basically I need all information about targets which get exported (and their i…

---

## [Library's CMake generates DLL. Application's CMake wants LIB](https://discourse.cmake.org/t/librarys-cmake-generates-dll-applications-cmake-wants-lib/408)

<div class="topic-metadata">

**Author:** [@jwuttke](https://discourse.cmake.org/u/jwuttke)\
**Replies:** 6\
**Last updated:** [December 19, 2019, 1:01am UTC](https://discourse.cmake.org/t/librarys-cmake-generates-dll-applications-cmake-wants-lib/408 "2019-12-19T01:01:14Z")

</div>

My library has minimal, straightforward CMake code with the pertinent lines add\_library(MyLib \<sources\>) install( TARGETS MyLib LIBRARY DESTINATION ${destination}/lib RUNTIME DESTINATION ${destination}/lib …

---

## [the amount of project() statements](https://discourse.cmake.org/t/the-amount-of-project-statements/406)

<div class="topic-metadata">

**Author:** [@Lieven](https://discourse.cmake.org/u/Lieven)\
**Replies:** 1\
**Last updated:** [December 18, 2019, 3:35pm UTC](https://discourse.cmake.org/t/the-amount-of-project-statements/406 "2019-12-18T15:35:49Z")

</div>

Consider the following situation : A code base consisting out of: many libraries many applications/executables Assume organized like this rootdir |—executables |—libraries Where the executables contains a sub di…

---

## [How to automatically add header and source files to executable without file(GLOB )?](https://discourse.cmake.org/t/how-to-automatically-add-header-and-source-files-to-executable-without-file-glob/395)

<div class="topic-metadata">

**Author:** [@waxta](https://discourse.cmake.org/u/waxta)\
**Replies:** 1\
**Last updated:** [December 17, 2019, 5:08pm UTC](https://discourse.cmake.org/t/how-to-automatically-add-header-and-source-files-to-executable-without-file-glob/395 "2019-12-17T17:08:39Z")

</div>

Hello. For now, I use file(GLOB\_RECURSE source\_list "\*.cpp" "\*.h") in order to automatically add new files to project. I work with Clion and it “doesn’t like” this function. I mean, when I want to generate function’s def…

---

## [How to import from build tree? (Answered)](https://discourse.cmake.org/t/how-to-import-from-build-tree-answered/392)

<div class="topic-metadata">

**Author:** [@Javier\_Gutierrez](https://discourse.cmake.org/u/Javier_Gutierrez)\
**Replies:** 1\
**Last updated:** [December 17, 2019, 3:00pm UTC](https://discourse.cmake.org/t/how-to-import-from-build-tree-answered/392 "2019-12-17T15:00:52Z")

</div>

Hello there, It took me more time than expected to find out how to “import” an export file that I created with the export from a build tree approach. That is using the export() command. I learned how to export from a b…

---

## [macOS copy dependency to package](https://discourse.cmake.org/t/macos-copy-dependency-to-package/349)

<div class="topic-metadata">

**Author:** [@baschdel\_98](https://discourse.cmake.org/u/baschdel_98)\
**Replies:** 1\
**Last updated:** [December 16, 2019, 9:29pm UTC](https://discourse.cmake.org/t/macos-copy-dependency-to-package/349 "2019-12-16T21:29:12Z")

</div>

Hello there, I have a small problem with c++ cmake on OSX. I am writing an application that depends on Qt, Curl, and FFmpeg. I am able to build the application I am able to create a \*.app directory I am able to creat…

---

## [CMake 3.15.6 available for download](https://discourse.cmake.org/t/cmake-3-15-6-available-for-download/391)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [December 16, 2019, 8:31pm UTC](https://discourse.cmake.org/t/cmake-3-15-6-available-for-download/391 "2019-12-16T20:31:25Z")

</div>

We are pleased to announce that CMake 3.15.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.15.6 since 3.15.5: A…

---

## [Old Visual Studio](https://discourse.cmake.org/t/old-visual-studio/385)

<div class="topic-metadata">

**Author:** [@vvs31415](https://discourse.cmake.org/u/vvs31415)\
**Replies:** 1\
**Last updated:** [December 16, 2019, 2:13pm UTC](https://discourse.cmake.org/t/old-visual-studio/385 "2019-12-16T14:13:21Z")

</div>

When the old MSVC++ versions (2005,2008) will be dropped ?

---

## [Why does source file try\_compile not propagate CMAKE\_TOOLCHAIN\_FILE to the generated project?](https://discourse.cmake.org/t/why-does-source-file-try-compile-not-propagate-cmake-toolchain-file-to-the-generated-project/275)

<div class="topic-metadata">

**Author:** [@alcroito](https://discourse.cmake.org/u/alcroito)\
**Replies:** 1\
**Last updated:** [December 15, 2019, 1:04am UTC](https://discourse.cmake.org/t/why-does-source-file-try-compile-not-propagate-cmake-toolchain-file-to-the-generated-project/275 "2019-12-15T01:04:56Z")

</div>

Looking at the generated CMakeCache.txt of a try\_compile project (via --debug-trycompile), I do not see a CMAKE\_TOOLCHAIN\_FILE cache entry, even if one was passed to the project. In my particular case I pass the Google …

---

## [find\_package\_handle\_standard\_args terminates though not REQUIRED](https://discourse.cmake.org/t/find-package-handle-standard-args-terminates-though-not-required/382)

<div class="topic-metadata">

**Author:** [@jwuttke](https://discourse.cmake.org/u/jwuttke)\
**Replies:** 3\
**Last updated:** [December 14, 2019, 5:35pm UTC](https://discourse.cmake.org/t/find-package-handle-standard-args-terminates-though-not-required/382 "2019-12-14T17:35:48Z")

</div>

Searching for library “Cerf” # FindCerf.cmake: ... find\_path(Cerf\_INCLUDE\_DIR cerf.h) find\_library(Cerf\_LIBRARIES NAMES cerf) include(FindPackageHandleStandardArgs) find\_package\_handle\_standard\_args(Cerf DEFAULT\_MSG Cer…

---

## [Getting verbose message for cmake](https://discourse.cmake.org/t/getting-verbose-message-for-cmake/383)

<div class="topic-metadata">

**Author:** [@mahmoodn](https://discourse.cmake.org/u/mahmoodn)\
**Replies:** 1\
**Last updated:** [December 14, 2019, 4:54pm UTC](https://discourse.cmake.org/t/getting-verbose-message-for-cmake/383 "2019-12-14T16:54:37Z")

</div>

For PyTorch, I get this error -- Could NOT find NCCL (missing: NCCL\_INCLUDE\_DIR NCCL\_LIBRARY) CMake Warning at third\_party/gloo/cmake/Dependencies.cmake:96 (message): Not compiling with NCCL support. Suppress this wa…

---

## [wrong build order with generator expression TARGET\_LINKER\_FILE](https://discourse.cmake.org/t/wrong-build-order-with-generator-expression-target-linker-file/380)

<div class="topic-metadata">

**Author:** [@jwuttke](https://discourse.cmake.org/u/jwuttke)\
**Replies:** 4\
**Last updated:** [December 13, 2019, 3:56pm UTC](https://discourse.cmake.org/t/wrong-build-order-with-generator-expression-target-linker-file/380 "2019-12-13T15:56:49Z")

</div>

top-level CMakeLists.txt has add\_subdirectory(MyLib) add\_subdirectory(Tests) MyLib/CMakeLists.txt has add\_library(MyLib \<sources\>) ... Tests/CMakeLists.txt has add\_executable(Test1 \<sources\>) target\_link\_libraries(T…

---

## [Build ID](https://discourse.cmake.org/t/build-id/354)

<div class="topic-metadata">

**Author:** [@David\_Dixon](https://discourse.cmake.org/u/David_Dixon)\
**Replies:** 8\
**Last updated:** [December 13, 2019, 2:44pm UTC](https://discourse.cmake.org/t/build-id/354 "2019-12-13T14:44:36Z")

</div>

When running CI it would be great to post a link to the build on cdash. Is it possible to generate the link? If not, it seems like I just need the buildid e.g.: https://mycdashserver.com/cdash/buildSummary.php?buildid=1…

---

## [How to retrieve variable definition but not from cache?](https://discourse.cmake.org/t/how-to-retrieve-variable-definition-but-not-from-cache/303)

<div class="topic-metadata">

**Author:** [@dbahadir](https://discourse.cmake.org/u/dbahadir)\
**Replies:** 5\
**Last updated:** [December 12, 2019, 2:18pm UTC](https://discourse.cmake.org/t/how-to-retrieve-variable-definition-but-not-from-cache/303 "2019-12-12T14:18:13Z")

</div>

I am currently playing around with the C++ source-code of CMake, trying to implement a new feature. For that I need to retrieve some defined variable, but I want to distinguish if its value comes from a CMake cache vari…

---

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

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 0\
**Last updated:** [December 12, 2019, 1:26pm UTC](https://discourse.cmake.org/t/professional-cmake-a-practical-guide-5th-edition/360 "2019-12-12T13:26:43Z")

</div>

The new edition of the book Professional CMake: A Practical Guide is now available. It has been updated for the CMake 3.16 release and includes a substantial amount of new material. In particular, a new chapter on build …

---

## [Can OBJECT libraries be EXCLUDED\_FROM\_ALL?](https://discourse.cmake.org/t/can-object-libraries-be-excluded-from-all/357)

<div class="topic-metadata">

**Author:** [@Eric\_Malenfant](https://discourse.cmake.org/u/Eric_Malenfant)\
**Replies:** 1\
**Last updated:** [December 12, 2019, 1:19pm UTC](https://discourse.cmake.org/t/can-object-libraries-be-excluded-from-all/357 "2019-12-12T13:19:25Z")

</div>

Hello, Currently using version 3.14.4, and experimenting with OBJECT libraries (https://cmake.org/cmake/help/v3.14/command/add\_library.html#object-libraries) Just ran a few tests, but it seems that targets added via ad…

---

## [How to call ninja-build instead of ninja?](https://discourse.cmake.org/t/how-to-call-ninja-build-instead-of-ninja/352)

<div class="topic-metadata">

**Author:** [@DavidA](https://discourse.cmake.org/u/DavidA)\
**Replies:** 4\
**Last updated:** [December 12, 2019, 10:16am UTC](https://discourse.cmake.org/t/how-to-call-ninja-build-instead-of-ninja/352 "2019-12-12T10:16:39Z")

</div>

I am using Visual Studio 2017 to remotely build software on a Centos 7 machine, using CMake. On the Centos machine we installed the ninja-build package. So the ninja command is ‘ninja-build’. How do I tell CMake to cal…

---

## [\-Wl,-force\_link flags not working correctly](https://discourse.cmake.org/t/wl-force-link-flags-not-working-correctly/322)

<div class="topic-metadata">

**Author:** [@oliverdain](https://discourse.cmake.org/u/oliverdain)\
**Replies:** 20\
**Last updated:** [December 12, 2019, 10:02am UTC](https://discourse.cmake.org/t/wl-force-link-flags-not-working-correctly/322 "2019-12-12T10:02:43Z")

</div>

I have a very strange issue which I suspect is a cmake bug. I’ve tried to reproduce with a small example but the small example works fine. I’ve got a multi-directory project. In one of those projects I have a CMakeLists.…

---

## [Upload file to dashboard file generated during CI](https://discourse.cmake.org/t/upload-file-to-dashboard-file-generated-during-ci/152)

<div class="topic-metadata">

**Author:** [@David\_Dixon](https://discourse.cmake.org/u/David_Dixon)\
**Replies:** 13\
**Last updated:** [December 12, 2019, 4:20am UTC](https://discourse.cmake.org/t/upload-file-to-dashboard-file-generated-during-ci/152 "2019-12-12T04:20:35Z")

</div>

I am generating a file that captures all of the steps that occur during CI such that devs can grab the file login to a cluster and run the script to reproduce the environment, config, build etc. steps that occured during…

---

## [CMake 3.16.1 available for download](https://discourse.cmake.org/t/cmake-3-16-1-available-for-download/344)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [December 10, 2019, 5:48pm UTC](https://discourse.cmake.org/t/cmake-3-16-1-available-for-download/344 "2019-12-10T17:48:36Z")

</div>

We are pleased to announce that CMake 3.16.1 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.1 since 3.16.0: A…

---

## [CMake ExternalProject addon forcing install path to c:/program files and ignoring INSTALL\_PATH option](https://discourse.cmake.org/t/cmake-externalproject-addon-forcing-install-path-to-c-program-files-and-ignoring-install-path-option/342)

<div class="topic-metadata">

**Author:** [@ethindp](https://discourse.cmake.org/u/ethindp)\
**Replies:** 2\
**Last updated:** [December 10, 2019, 2:25pm UTC](https://discourse.cmake.org/t/cmake-externalproject-addon-forcing-install-path-to-c-program-files-and-ignoring-install-path-option/342 "2019-12-10T14:25:43Z")

</div>

This is incredibly confusing. I have the following CMake code in my CMakeLists.txt: list(APPEND CMAKE\_ARGS "-DSCRIPT\_API=C#" "-DBSF\_ENABLE\_EXCEPTIONS=On" "-DAUDIO\_MODULE=OpenAudio" "-DBSF\_PLUGIN\_IMGUI=Off" "-DRENDER\_API…

---

## [Library target isn't rebuilt when it depends on another custom target.](https://discourse.cmake.org/t/library-target-isnt-rebuilt-when-it-depends-on-another-custom-target/311)

<div class="topic-metadata">

**Author:** [@ginee](https://discourse.cmake.org/u/ginee)\
**Replies:** 4\
**Last updated:** [December 10, 2019, 7:55am UTC](https://discourse.cmake.org/t/library-target-isnt-rebuilt-when-it-depends-on-another-custom-target/311 "2019-12-10T07:55:44Z")

</div>

I made a dependency on a library target for a custom target by “ADD\_DEPENDENCIES(lib\_target extern\_target)”. It works well that every time lib\_target is built, extern\_target will be built. However, when associated fi…

---

## [Is target specific stuff transitive to dependencies?](https://discourse.cmake.org/t/is-target-specific-stuff-transitive-to-dependencies/336)

<div class="topic-metadata">

**Author:** [@oscarh](https://discourse.cmake.org/u/oscarh)\
**Replies:** 10\
**Last updated:** [December 10, 2019, 12:30am UTC](https://discourse.cmake.org/t/is-target-specific-stuff-transitive-to-dependencies/336 "2019-12-10T00:30:33Z")

</div>

We have some libraries that are to be consumed by multiple applications, but with different compile definitions or flags. For example, when compiled with app-A, we need -DappA. When compiled with app-B, we need -DappB. I…

---

## [Usage of INTERFACE\_LINK\_LIBRARIES with namespaced targets](https://discourse.cmake.org/t/usage-of-interface-link-libraries-with-namespaced-targets/330)

<div class="topic-metadata">

**Author:** [@Martin\_Stolpe](https://discourse.cmake.org/u/Martin_Stolpe)\
**Replies:** 6\
**Last updated:** [December 9, 2019, 6:33pm UTC](https://discourse.cmake.org/t/usage-of-interface-link-libraries-with-namespaced-targets/330 "2019-12-09T18:33:47Z")

</div>

I try to use the Intel MKL, which has some pkg-config configuration files, with CMake. When I try to link the MKL statically in my project some linker options will be stored in the INTERFACE\_LINK\_LIBRARIES property. When…

---

## [Distribution through the Microsoft Store](https://discourse.cmake.org/t/distribution-through-the-microsoft-store/315)

<div class="topic-metadata">

**Author:** [@MathiasMagnus](https://discourse.cmake.org/u/MathiasMagnus)\
**Replies:** 2\
**Last updated:** [December 9, 2019, 2:22pm UTC](https://discourse.cmake.org/t/distribution-through-the-microsoft-store/315 "2019-12-09T14:22:01Z")

</div>

I’m trying to improve the developer experience on Windows, where a big pain point is not having a proper repository of applications. Vcpkg is awesome when it comes to library dependencies, but is not the preferred way to…

---

## [The nightmare of copy paste of FindXXX.cmake via the case of libvorbis](https://discourse.cmake.org/t/the-nightmare-of-copy-paste-of-findxxx-cmake-via-the-case-of-libvorbis/334)

<div class="topic-metadata">

**Author:** [@Hinara](https://discourse.cmake.org/u/Hinara)\
**Replies:** 2\
**Last updated:** [December 9, 2019, 1:21pm UTC](https://discourse.cmake.org/t/the-nightmare-of-copy-paste-of-findxxx-cmake-via-the-case-of-libvorbis/334 "2019-12-09T13:21:45Z")

</div>

Hello, I would like to speak with the CMake community about something that I’ve discovered and which is freaking scary. I know that people don’t like to write by themselves the FindXXX.cmake files, making them copied a…

---

## [Cleaning policy?](https://discourse.cmake.org/t/cleaning-policy/331)

<div class="topic-metadata">

**Author:** [@DavidA](https://discourse.cmake.org/u/DavidA)\
**Replies:** 3\
**Last updated:** [December 6, 2019, 7:59pm UTC](https://discourse.cmake.org/t/cleaning-policy/331 "2019-12-06T19:59:48Z")

</div>

I am about to introduce CMake to our organisation. A question likely to come up is how to ‘clean’ a build directory. My understanding is that CMake doesn’t offer support for ‘clean’. What is the recommendation? Should …

---

## [Running commands on all targets linked against another target](https://discourse.cmake.org/t/running-commands-on-all-targets-linked-against-another-target/326)

<div class="topic-metadata">

**Author:** [@sandercox](https://discourse.cmake.org/u/sandercox)\
**Replies:** 4\
**Last updated:** [December 6, 2019, 11:09am UTC](https://discourse.cmake.org/t/running-commands-on-all-targets-linked-against-another-target/326 "2019-12-06T11:09:32Z")

</div>

I have some binaries that are linked against some libraries most are now set to be interface libs. I’d like to add some extra postbuild commands to these targets that fix rpath stuff on mac os for instance. I can write …

---

## [target\_link\_libraries, build order and build parallelism](https://discourse.cmake.org/t/target-link-libraries-build-order-and-build-parallelism/313)

<div class="topic-metadata">

**Author:** [@rnyberg](https://discourse.cmake.org/u/rnyberg)\
**Replies:** 2\
**Last updated:** [December 5, 2019, 10:22am UTC](https://discourse.cmake.org/t/target-link-libraries-build-order-and-build-parallelism/313 "2019-12-05T10:22:06Z")

</div>

Hi CMake gurus! Given the example CMakeLists.txt file below I have a few questions. Why does building libb first build liba? As I understand it liba should just be propagated as a link time dependency to whatever actu…

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

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