# Latest

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

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

**Page:** 203

---

## [Add extra files to CPack without "install()"-ing them](https://discourse.cmake.org/t/add-extra-files-to-cpack-without-install-ing-them/800)

<div class="topic-metadata">

**Author:** [@Mathsoum](https://discourse.cmake.org/u/Mathsoum)\
**Replies:** 3\
**Last updated:** [March 13, 2020, 1:01pm UTC](https://discourse.cmake.org/t/add-extra-files-to-cpack-without-install-ing-them/800 "2020-03-13T13:01:29Z")

</div>

Hi everyone, I’m building a multi-platform library and I have the cmake && build && install process working everywhere I need it to be working. What I try to do now is create a NSIS packages with CPack for Windows and …

---

## [cmake: error while loading shared libraries: libcom\_err.so.3](https://discourse.cmake.org/t/cmake-error-while-loading-shared-libraries-libcom-err-so-3/795)

<div class="topic-metadata">

**Author:** [@Yadav\_Rashmitha](https://discourse.cmake.org/u/Yadav_Rashmitha)\
**Replies:** 1\
**Last updated:** [March 13, 2020, 12:59pm UTC](https://discourse.cmake.org/t/cmake-error-while-loading-shared-libraries-libcom-err-so-3/795 "2020-03-13T12:59:07Z")

</div>

Hi all, I am getting cmake error when executing cmake --version. I have attached the screenshot of the the error message. I request you let me know the fix for this error. Thanks & Regards, Rashmitha

---

## [unable to get target location](https://discourse.cmake.org/t/unable-to-get-target-location/797)

<div class="topic-metadata">

**Author:** [@hex](https://discourse.cmake.org/u/hex)\
**Replies:** 5\
**Last updated:** [March 13, 2020, 12:51pm UTC](https://discourse.cmake.org/t/unable-to-get-target-location/797 "2020-03-13T12:51:51Z")

</div>

I am getting a location not found for my custom target. Here is the code snippet: cmake\_minimum\_required( VERSION 3.17 ) project(Debug) add\_custom\_target(tgt ALL) get\_target\_property( TGT\_LOCATION tgt LOCATION ) mess…

---

## [\[solved\] plugin development for cmake?](https://discourse.cmake.org/t/solved-plugin-development-for-cmake/802)

<div class="topic-metadata">

**Author:** [@hex](https://discourse.cmake.org/u/hex)\
**Replies:** 1\
**Last updated:** [March 13, 2020, 12:38pm UTC](https://discourse.cmake.org/t/solved-plugin-development-for-cmake/802 "2020-03-13T12:38:30Z")

</div>

On this site https://www.aosabook.org/en/cmake.html section 5.3.3 mentions the possibility of developing plugins in C for CMake. Where can I find more information about this?

---

## [find\_package(PNG) failing to find i386 libs when crosscompiling on x86-64 host?](https://discourse.cmake.org/t/find-package-png-failing-to-find-i386-libs-when-crosscompiling-on-x86-64-host/783)

<div class="topic-metadata">

**Author:** [@steven-johnson](https://discourse.cmake.org/u/steven-johnson)\
**Replies:** 6\
**Last updated:** [March 13, 2020, 3:54am UTC](https://discourse.cmake.org/t/find-package-png-failing-to-find-i386-libs-when-crosscompiling-on-x86-64-host/783 "2020-03-13T03:54:55Z")

</div>

The situation: my host system is an x86-64 linux system (running ubuntu 18). I’m trying to cross-compile (and test) for x86-32 on this system. Most of what I need to do seems straightforward, and has worked fine for a l…

---

## [CMake 3.17.0-rc3 is ready for testing](https://discourse.cmake.org/t/cmake-3-17-0-rc3-is-ready-for-testing/798)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [March 12, 2020, 3:54pm UTC](https://discourse.cmake.org/t/cmake-3-17-0-rc3-is-ready-for-testing/798 "2020-03-12T15:54:06Z")

</div>

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

---

## [Generating Xcode projects with group structure that matches the disk layout](https://discourse.cmake.org/t/generating-xcode-projects-with-group-structure-that-matches-the-disk-layout/790)

<div class="topic-metadata">

**Author:** [@duncanvv](https://discourse.cmake.org/u/duncanvv)\
**Replies:** 3\
**Last updated:** [March 11, 2020, 1:46pm UTC](https://discourse.cmake.org/t/generating-xcode-projects-with-group-structure-that-matches-the-disk-layout/790 "2020-03-11T13:46:47Z")

</div>

Hi, We have a patch on top of CMake that generates Xcode projects with files arranged in groups matching the disk layout of the folder structure rather than with all files in a flat list. This is how the files would be…

---

## [Unnecessary recompilation of out of tree sources](https://discourse.cmake.org/t/unnecessary-recompilation-of-out-of-tree-sources/733)

<div class="topic-metadata">

**Author:** [@Zenn](https://discourse.cmake.org/u/Zenn)\
**Replies:** 8\
**Last updated:** [March 10, 2020, 5:00pm UTC](https://discourse.cmake.org/t/unnecessary-recompilation-of-out-of-tree-sources/733 "2020-03-10T17:00:00Z")

</div>

Hi, I have multiple projects, where each project needs some common files. Before, those files have been in each project separately. After changing these files to a common location outside of each project, ninja keeps r…

---

## [Does the target\_include\_directories() command strip out duplicate paths added?](https://discourse.cmake.org/t/does-the-target-include-directories-command-strip-out-duplicate-paths-added/769)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 11\
**Last updated:** [March 9, 2020, 5:28pm UTC](https://discourse.cmake.org/t/does-the-target-include-directories-command-strip-out-duplicate-paths-added/769 "2020-03-09T17:28:32Z")

</div>

Yes, it does (BUT as good it can); see the following exemple project: cmake\_minimum\_required(VERSION 3.8 FATAL\_ERROR) project(test C) file(WRITE ${CMAKE\_BINARY\_DIR}/main.c "int main(void){return 0;}\\n") add\_executable(…

---

## [How to add Linker Script for GHS Multi Generator](https://discourse.cmake.org/t/how-to-add-linker-script-for-ghs-multi-generator/770)

<div class="topic-metadata">

**Author:** [@Qichen\_Huang](https://discourse.cmake.org/u/Qichen_Huang)\
**Replies:** 8\
**Last updated:** [March 8, 2020, 8:41pm UTC](https://discourse.cmake.org/t/how-to-add-linker-script-for-ghs-multi-generator/770 "2020-03-08T20:41:29Z")

</div>

When I use Makefile generator, there is no problem to add the linker script as a link option like this: add\_link\_options ( ${PROJECT\_LINK\_FLAGS} ${LD\_MAP} ${LINKER\_SCRIPT} ) However, it doesn’t work for GHS…

---

## [NSIS PATH Option screen not multi-language](https://discourse.cmake.org/t/nsis-path-option-screen-not-multi-language/772)

<div class="topic-metadata">

**Author:** [@Gonzalo\_Garramuno](https://discourse.cmake.org/u/Gonzalo_Garramuno)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 8:32pm UTC](https://discourse.cmake.org/t/nsis-path-option-screen-not-multi-language/772 "2020-03-06T20:32:27Z")

</div>

The optional Set Path for All Users and Create Desktop Icon page in the NSIS installer is not multi-language. Therefore, a user installing in, say, Italian, will see that page in English and get confused, as the rest…

---

## [How to create file-dependency for all sources of target?](https://discourse.cmake.org/t/how-to-create-file-dependency-for-all-sources-of-target/706)

<div class="topic-metadata">

**Author:** [@pboettch](https://discourse.cmake.org/u/pboettch)\
**Replies:** 5\
**Last updated:** [March 5, 2020, 3:59pm UTC](https://discourse.cmake.org/t/how-to-create-file-dependency-for-all-sources-of-target/706 "2020-03-05T15:59:15Z")

</div>

I have different use-cases where I would like to declare a file-dependency at target-level, be it generated or in the sources, which influences the compile-process for all sources of this target. Imagine a configuration…

---

## [Scoped enable\_language](https://discourse.cmake.org/t/scoped-enable-language/766)

<div class="topic-metadata">

**Author:** [@eriols](https://discourse.cmake.org/u/eriols)\
**Replies:** 2\
**Last updated:** [March 5, 2020, 8:05am UTC](https://discourse.cmake.org/t/scoped-enable-language/766 "2020-03-05T08:05:42Z")

</div>

I have a project in language A with most toolchain files also in A. If built with unittests then there is one or two subdirectories in language B included. One single toolchain is also in language B. Depending on an o…

---

## [iOS resource management](https://discourse.cmake.org/t/ios-resource-management/758)

<div class="topic-metadata">

**Author:** [@cycollins](https://discourse.cmake.org/u/cycollins)\
**Replies:** 6\
**Last updated:** [March 4, 2020, 11:35pm UTC](https://discourse.cmake.org/t/ios-resource-management/758 "2020-03-04T23:35:14Z")

</div>

There are facilities in Cmake for hinting source code to be treated as resources for an iOS App, and that works modestly well. When you generate an Xcode project, the code behavior is close to being right. You get a proj…

---

## [CMake 3.16.5 available for download](https://discourse.cmake.org/t/cmake-3-16-5-available-for-download/765)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [March 4, 2020, 3:50pm UTC](https://discourse.cmake.org/t/cmake-3-16-5-available-for-download/765 "2020-03-04T15:50:11Z")

</div>

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

---

## [cmake installation error of file & directory not found](https://discourse.cmake.org/t/cmake-installation-error-of-file-directory-not-found/746)

<div class="topic-metadata">

**Author:** [@nachiket\_acharya](https://discourse.cmake.org/u/nachiket_acharya)\
**Replies:** 5\
**Last updated:** [March 4, 2020, 1:49pm UTC](https://discourse.cmake.org/t/cmake-installation-error-of-file-directory-not-found/746 "2020-03-04T13:49:47Z")

</div>

I get the following error after running the command: ./bootstrap && make && sudo make install CMake Error at Modules/CMakeTestCCompiler.cmake:60 (message): The C compiler "/usr/bin/gcc" is not able to compile a simp…

---

## [Getting several undefined reference to \`boost::system::generic\_category()' errors](https://discourse.cmake.org/t/getting-several-undefined-reference-to-boost-generic-category-errors/761)

<div class="topic-metadata">

**Author:** [@johnratius](https://discourse.cmake.org/u/johnratius)\
**Replies:** 0\
**Last updated:** [March 3, 2020, 9:49pm UTC](https://discourse.cmake.org/t/getting-several-undefined-reference-to-boost-generic-category-errors/761 "2020-03-03T21:49:24Z")

</div>

I am trying to get this CMake file to run. I am using the CMake files from this git repo. It uses OpenFrameworks which uses a lot of libraries. The error I am getting is this: \[ 33%\] Linking CXX executable untitled2.ex…

---

## [Function of "CMake Nightly Date Stamp"?](https://discourse.cmake.org/t/function-of-cmake-nightly-date-stamp/759)

<div class="topic-metadata">

**Author:** [@johan556](https://discourse.cmake.org/u/johan556)\
**Replies:** 1\
**Last updated:** [March 3, 2020, 8:03pm UTC](https://discourse.cmake.org/t/function-of-cmake-nightly-date-stamp/759 "2020-03-03T20:03:58Z")

</div>

Hi! I have noticed that the Git archive of CMake has a regularly occurring commit by Kitware Robot, with comment “CMake Nightly Date Stamp”. I’m just curious what the function is, of these commits. Does it make the hist…

---

## [Issue with the install phase of package](https://discourse.cmake.org/t/issue-with-the-install-phase-of-package/721)

<div class="topic-metadata">

**Author:** [@scottaronbloom](https://discourse.cmake.org/u/scottaronbloom)\
**Replies:** 12\
**Last updated:** [March 3, 2020, 6:34pm UTC](https://discourse.cmake.org/t/issue-with-the-install-phase-of-package/721 "2020-03-03T18:34:24Z")

</div>

Currently, for windows, I use a local installation area. Between Qt, and other 3rd party shared libraries, its difficult to have a user create installation otherwise. To do so, I have used for sometime, and it works gr…

---

## [c file is only compiled when it is used by add\_subdirectory](https://discourse.cmake.org/t/c-file-is-only-compiled-when-it-is-used-by-add-subdirectory/754)

<div class="topic-metadata">

**Author:** [@MichaWiedenmann](https://discourse.cmake.org/u/MichaWiedenmann)\
**Replies:** 2\
**Last updated:** [March 3, 2020, 2:22pm UTC](https://discourse.cmake.org/t/c-file-is-only-compiled-when-it-is-used-by-add-subdirectory/754 "2020-03-03T14:22:07Z")

</div>

I have a C++ project with a .c and .cpp file: # d:\\top\\sub\\CMakeLists.txt cmake\_minimum\_required(VERSION 3.16) project(foo CXX) add\_executable(foo WIN32 file1.cpp file2.c) when generating a vcxproj the .c file gets lis…

---

## [Email replies truncated at code fences with tildes](https://discourse.cmake.org/t/email-replies-truncated-at-code-fences-with-tildes/743)

<div class="topic-metadata">

**Author:** [@airwin](https://discourse.cmake.org/u/airwin)\
**Replies:** 14\
**Last updated:** [March 3, 2020, 12:47pm UTC](https://discourse.cmake.org/t/email-replies-truncated-at-code-fences-with-tildes/743 "2020-03-03T12:47:16Z")

</div>

I just now used email to reply to some CMake discourse code traffic, and used the above common markdown command (that certainly works when hand-posting to CMake discourse) to surround text that was to be taken literally…

---

## [CMake 3.17.0-rc2 is ready for testing](https://discourse.cmake.org/t/cmake-3-17-0-rc2-is-ready-for-testing/749)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [March 2, 2020, 9:34pm UTC](https://discourse.cmake.org/t/cmake-3-17-0-rc2-is-ready-for-testing/749 "2020-03-02T21:34:25Z")

</div>

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

---

## [How to avoid parallel-build race conditions?](https://discourse.cmake.org/t/how-to-avoid-parallel-build-race-conditions/727)

<div class="topic-metadata">

**Author:** [@airwin](https://discourse.cmake.org/u/airwin)\
**Replies:** 12\
**Last updated:** [March 2, 2020, 8:10pm UTC](https://discourse.cmake.org/t/how-to-avoid-parallel-build-race-conditions/727 "2020-03-02T20:10:20Z")

</div>

The documentation of add\_custom\_command states (in part) the following: “Do not list the output in more than one independent target that may build in parallel or the two instances of the rule may conflict (instead use…

---

## [CMake discourse mailing-list mode incorrectly personally addresses all email](https://discourse.cmake.org/t/cmake-discourse-mailing-list-mode-incorrectly-personally-addresses-all-email/738)

<div class="topic-metadata">

**Author:** [@airwin](https://discourse.cmake.org/u/airwin)\
**Replies:** 1\
**Last updated:** [March 2, 2020, 2:05pm UTC](https://discourse.cmake.org/t/cmake-discourse-mailing-list-mode-incorrectly-personally-addresses-all-email/738 "2020-03-02T14:05:46Z")

</div>

My mailer software (alpine in this case) makes the important distinction between personal email and list server email, and I assume that is also true of other mailer software. And the cmake and cmake-devel mailing li…

---

## [Question about the precompiled-header feature of CMake 3.16.x](https://discourse.cmake.org/t/question-about-the-precompiled-header-feature-of-cmake-3-16-x/682)

<div class="topic-metadata">

**Author:** [@mmoelle1](https://discourse.cmake.org/u/mmoelle1)\
**Replies:** 3\
**Last updated:** [February 29, 2020, 11:13pm UTC](https://discourse.cmake.org/t/question-about-the-precompiled-header-feature-of-cmake-3-16-x/682 "2020-02-29T23:13:28Z")

</div>

I started to use the precompiled-header feature introduced with Make 3.16.x (Thank you for this!) It all works fine when using it in the planned way. What I would like to achieve is to extract the compile instruction us…

---

## [How to use CMakePackageConfigHelpers right?](https://discourse.cmake.org/t/how-to-use-cmakepackageconfighelpers-right/660)

<div class="topic-metadata">

**Author:** [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)\
**Replies:** 8\
**Last updated:** [February 29, 2020, 9:36am UTC](https://discourse.cmake.org/t/how-to-use-cmakepackageconfighelpers-right/660 "2020-02-29T09:36:41Z")

</div>

When I try to use it like here https://cmake.org/cmake/help/latest/module/CMakePackageConfigHelpers.html#example-generating-package-files I run into problems. Using cmake version 3.16.3 on OSX and debian, same result. …

---

## [cuda-memcheck as MEMORYCHECK\_COMMAND](https://discourse.cmake.org/t/cuda-memcheck-as-memorycheck-command/198)

<div class="topic-metadata">

**Author:** [@allen-barnett](https://discourse.cmake.org/u/allen-barnett)\
**Replies:** 5\
**Last updated:** [February 28, 2020, 9:50pm UTC](https://discourse.cmake.org/t/cuda-memcheck-as-memorycheck-command/198 "2020-02-28T21:50:23Z")

</div>

I tried setting MEMORYCHECK\_COMMAND to /usr/local/bin/cuda-memcheck, but “ctest -T memcheck” yielded this message: Do not understand memory checker: /usr/local/cuda/bin/cuda-memcheck Looking at the code, there are ind…

---

## [How does CMake parse and execute its lists and modules](https://discourse.cmake.org/t/how-does-cmake-parse-and-execute-its-lists-and-modules/734)

<div class="topic-metadata">

**Author:** [@satrapes](https://discourse.cmake.org/u/satrapes)\
**Replies:** 2\
**Last updated:** [February 28, 2020, 8:50pm UTC](https://discourse.cmake.org/t/how-does-cmake-parse-and-execute-its-lists-and-modules/734 "2020-02-28T20:50:59Z")

</div>

Hello, I am trying to understand how does CMake go through CMakeLists.txt files and .cmake files to produce the output in order to fix a bug in my cmake code. Can someone help?

---

## [target\_link\_directories for imported targets](https://discourse.cmake.org/t/target-link-directories-for-imported-targets/717)

<div class="topic-metadata">

**Author:** [@sghosh](https://discourse.cmake.org/u/sghosh)\
**Replies:** 1\
**Last updated:** [February 28, 2020, 8:46pm UTC](https://discourse.cmake.org/t/target-link-directories-for-imported-targets/717 "2020-02-28T20:46:38Z")

</div>

In my project I am using MAP\_IMPORTED\_CONFIG\_FINAL for an external library for a custom configuration FINAL . Is there some working example of how to set the target\_link\_directories for an imported target for the custom …

---

## [Testing targets with shared libraries on Windows](https://discourse.cmake.org/t/testing-targets-with-shared-libraries-on-windows/707)

<div class="topic-metadata">

**Author:** [@alex](https://discourse.cmake.org/u/alex)\
**Replies:** 3\
**Last updated:** [February 28, 2020, 8:43pm UTC](https://discourse.cmake.org/t/testing-targets-with-shared-libraries-on-windows/707 "2020-02-28T20:43:54Z")

</div>

I have a working build and test set up on Linux (yay!) but Windows continues to pose challenges. Everything builds fine, but all tests fail with “MyProj.dll” not found! I suppose this is because they are in different di…

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

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