# Latest

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

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

**Page:** 186

---

## [Support for embedding data in a manner equivalent to xxd](https://discourse.cmake.org/t/support-for-embedding-data-in-a-manner-equivalent-to-xxd/2121)

<div class="topic-metadata">

**Author:** [@rleigh](https://discourse.cmake.org/u/rleigh)\
**Replies:** 12\
**Last updated:** [November 14, 2020, 4:22pm UTC](https://discourse.cmake.org/t/support-for-embedding-data-in-a-manner-equivalent-to-xxd/2121 "2020-11-14T16:22:32Z")

</div>

The xxd command can convert any input file to a form which can be included into a C source file or compiled directly: % echo "Sample data" \> test % xxd -i test unsigned char test\[\] = { 0x53, 0x61, 0x6d, 0x70, 0x6c, 0…

---

## [Feature Request: Implement Levenshtein distance for tracking Cmake bugs.](https://discourse.cmake.org/t/feature-request-implement-levenshtein-distance-for-tracking-cmake-bugs/2175)

<div class="topic-metadata">

**Author:** [@Qasim](https://discourse.cmake.org/u/Qasim)\
**Replies:** 1\
**Last updated:** [November 14, 2020, 10:15am UTC](https://discourse.cmake.org/t/feature-request-implement-levenshtein-distance-for-tracking-cmake-bugs/2175 "2020-11-14T10:15:33Z")

</div>

Hey there, I’ve been using CMake a lot for my projects, and recently came across the following error messages from Cmake while trying to compile it. Now, notice where it says, “did you mean ‘update\_enter’.” This is m…

---

## [Best practice for a library with multiple language bindings: target definitions with compile\_features](https://discourse.cmake.org/t/best-practice-for-a-library-with-multiple-language-bindings-target-definitions-with-compile-features/2168)

<div class="topic-metadata">

**Author:** [@relliott](https://discourse.cmake.org/u/relliott)\
**Replies:** 2\
**Last updated:** [November 13, 2020, 7:23pm UTC](https://discourse.cmake.org/t/best-practice-for-a-library-with-multiple-language-bindings-target-definitions-with-compile-features/2168 "2020-11-13T19:23:30Z")

</div>

I develop a library with language bindings for c, c++, and Fortran. The library c++ bindings require cxx\_std\_17 features. If I create the shared library target and use target\_compile\_features(XYZ PUBLIC cxx\_std\_17) and…

---

## [CMAKE\_CFG\_INTDIR and file(INSTALL)](https://discourse.cmake.org/t/cmake-cfg-intdir-and-file-install/2169)

<div class="topic-metadata">

**Author:** [@starseeker](https://discourse.cmake.org/u/starseeker)\
**Replies:** 1\
**Last updated:** [November 13, 2020, 2:24pm UTC](https://discourse.cmake.org/t/cmake-cfg-intdir-and-file-install/2169 "2020-11-13T14:24:06Z")

</div>

When attempting to use an install line of the following form with the NSIS package generator: add\_custom\_command( OUTPUT ${CMAKE\_BINARY\_DIR}/${CMAKE\_CFG\_INTDIR}/outfile COMMAND gen\_file ${CMAKE\_BINARY\_DIR}/$…

---

## [Setting CMAKE\_C\_FLAGS breaks transitive include folders?](https://discourse.cmake.org/t/setting-cmake-c-flags-breaks-transitive-include-folders/2165)

<div class="topic-metadata">

**Author:** [@ndevenish](https://discourse.cmake.org/u/ndevenish)\
**Replies:** 2\
**Last updated:** [November 13, 2020, 1:05pm UTC](https://discourse.cmake.org/t/setting-cmake-c-flags-breaks-transitive-include-folders/2165 "2020-11-13T13:05:14Z")

</div>

I’m trying to understand a failing behaviour where linking to an imported target isn’t properly using the include directory. The target has a proper INTERFACE\_INCLUDE\_DIRECTORIES set but it isn’t propagated to the compil…

---

## [Windows 32bit and ASM error when bumping cmake\_minimum\_required](https://discourse.cmake.org/t/windows-32bit-and-asm-error-when-bumping-cmake-minimum-required/1066)

<div class="topic-metadata">

**Author:** [@eriols](https://discourse.cmake.org/u/eriols)\
**Replies:** 4\
**Last updated:** [November 13, 2020, 1:00pm UTC](https://discourse.cmake.org/t/windows-32bit-and-asm-error-when-bumping-cmake-minimum-required/1066 "2020-11-13T13:00:59Z")

</div>

I had a CMakeLists with minimum required 3.3 and realised I should make that 3.15 as I used a feature from there under certain conditions. I was surprised to see that this broke a Windows 32 bit build (not using the 3.1…

---

## [Installing Qt libraries on Linux](https://discourse.cmake.org/t/installing-qt-libraries-on-linux/1524)

<div class="topic-metadata">

**Author:** [@EosPengwern](https://discourse.cmake.org/u/EosPengwern)\
**Replies:** 9\
**Last updated:** [November 12, 2020, 9:55pm UTC](https://discourse.cmake.org/t/installing-qt-libraries-on-linux/1524 "2020-11-12T21:55:33Z")

</div>

Is there a way of using install(TARGETS… to install the Qt libraries, together with their namelinks, on Linux? I’d expect the following to work, but it does not, and I don’t understand why: # First locate the Qt instal…

---

## [Cmake gitlab has over 3000 issues](https://discourse.cmake.org/t/cmake-gitlab-has-over-3000-issues/2166)

<div class="topic-metadata">

**Author:** [@anon45792294](https://discourse.cmake.org/u/anon45792294)\
**Replies:** 2\
**Last updated:** [November 12, 2020, 3:41pm UTC](https://discourse.cmake.org/t/cmake-gitlab-has-over-3000-issues/2166 "2020-11-12T15:41:45Z")

</div>

Currently the gitlab has over 3000 issues. I’m new to trying to contribute to big open source projects. But is something like this okay? I mean some of these issues were created +10 years ago.

---

## [\[Visual Studio\] Remote debugging](https://discourse.cmake.org/t/visual-studio-remote-debugging/1678)

<div class="topic-metadata">

**Author:** [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)\
**Replies:** 2\
**Last updated:** [November 12, 2020, 1:23pm UTC](https://discourse.cmake.org/t/visual-studio-remote-debugging/1678 "2020-11-12T13:23:58Z")

</div>

Is it possible to modify the visual studio remote debugging options with cmake?

---

## [Need Help](https://discourse.cmake.org/t/need-help/1648)

<div class="topic-metadata">

**Author:** [@pig13pi](https://discourse.cmake.org/u/pig13pi)\
**Replies:** 2\
**Last updated:** [November 12, 2020, 1:16pm UTC](https://discourse.cmake.org/t/need-help/1648 "2020-11-12T13:16:52Z")

</div>

CMake Error at CMakeLists.txt:50 (project): Generator Visual Studio 15 2017 Win64 could not find any instance of Visual Studio. I have Visual Studio 15 2017 loaded…

---

## [Build fails with Fortran modules nammed with macros](https://discourse.cmake.org/t/build-fails-with-fortran-modules-nammed-with-macros/1595)

<div class="topic-metadata">

**Author:** [@sgilbertjob](https://discourse.cmake.org/u/sgilbertjob)\
**Replies:** 6\
**Last updated:** [November 12, 2020, 1:13pm UTC](https://discourse.cmake.org/t/build-fails-with-fortran-modules-nammed-with-macros/1595 "2020-11-12T13:13:05Z")

</div>

Hello, I am working on a Fortran project that simulates generic programming (or C++ type templates) with include files and macros. We have decided to replace our home-brew build system with CMake and, up to now, things…

---

## [Central logging of all source and project-based try\_compile calls into a file](https://discourse.cmake.org/t/central-logging-of-all-source-and-project-based-try-compile-calls-into-a-file/1720)

<div class="topic-metadata">

**Author:** [@alcroito](https://discourse.cmake.org/u/alcroito)\
**Replies:** 2\
**Last updated:** [November 12, 2020, 9:03am UTC](https://discourse.cmake.org/t/central-logging-of-all-source-and-project-based-try-compile-calls-into-a-file/1720 "2020-11-12T09:03:17Z")

</div>

Hi, Is it possible to somehow redirect the configuration of all try\_compile calls (source and project based) to stdout or to a file, and also the full verbose build commands used? CMakeFiles/CMakeOutput.log and CMakeFi…

---

## [Access properties via generator expressions](https://discourse.cmake.org/t/access-properties-via-generator-expressions/2152)

<div class="topic-metadata">

**Author:** [@DreamCaptain](https://discourse.cmake.org/u/DreamCaptain)\
**Replies:** 3\
**Last updated:** [November 12, 2020, 7:39am UTC](https://discourse.cmake.org/t/access-properties-via-generator-expressions/2152 "2020-11-12T07:39:57Z")

</div>

Hi, I need a way to conditionally mark some include directories as PRIVATE or PUBLIC depending on global property. here’s the code i use now that explicitly applies target property if global property is set: if(GLOBAL…

---

## [generator expression $\<$\<BOOL:MSVC\>:dllmain.c\> evaluate to dllmain.c on linux](https://discourse.cmake.org/t/generator-expression-bool-msvc-dllmain-c-evaluate-to-dllmain-c-on-linux/2150)

<div class="topic-metadata">

**Author:** [@quanzhuo](https://discourse.cmake.org/u/quanzhuo)\
**Replies:** 3\
**Last updated:** [November 12, 2020, 1:01am UTC](https://discourse.cmake.org/t/generator-expression-bool-msvc-dllmain-c-evaluate-to-dllmain-c-on-linux/2150 "2020-11-12T01:01:37Z")

</div>

All is in title. $\<$\< BOOL:MSVC\>:dllmain.c\> evaluate to dllmain.c on Windows which is expected, However, it evaluated to dllmain.c on linux too. Why ? I use cmake 3.18 on both windows and linux.

---

## [cannot link to dynamic library correctly during parallel build](https://discourse.cmake.org/t/cannot-link-to-dynamic-library-correctly-during-parallel-build/1706)

<div class="topic-metadata">

**Author:** [@sandy-lcq](https://discourse.cmake.org/u/sandy-lcq)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 10:12pm UTC](https://discourse.cmake.org/t/cannot-link-to-dynamic-library-correctly-during-parallel-build/1706 "2020-11-11T22:12:22Z")

</div>

I met a compile fail problem, which is caused during parallel build. Please see this bug report for detail: https://bugs.llvm.org/show\_bug.cgi?id=46617 how can I fix this in CMakeList.txt? I have tried to explicitly c…

---

## [Choice of generator for CPack](https://discourse.cmake.org/t/choice-of-generator-for-cpack/1674)

<div class="topic-metadata">

**Author:** [@EosPengwern](https://discourse.cmake.org/u/EosPengwern)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 9:10pm UTC](https://discourse.cmake.org/t/choice-of-generator-for-cpack/1674 "2020-11-11T21:10:18Z")

</div>

I’d like to package an application on Windows and Linux, which is currently built and installed (on the build machine) using CMake. For the installation on the target machine to work correctly on Windows, there are seve…

---

## [Presentation order of targets within XCode](https://discourse.cmake.org/t/presentation-order-of-targets-within-xcode/1675)

<div class="topic-metadata">

**Author:** [@Andrew](https://discourse.cmake.org/u/Andrew)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 9:09pm UTC](https://discourse.cmake.org/t/presentation-order-of-targets-within-xcode/1675 "2020-11-11T21:09:47Z")

</div>

Using XCode with USE\_FOLDERS / set\_taget\_property(… FOLDER …) has helped organise my projects with lots of targets. However, the targets still appear inside XCode in arbitrary order (within the folders). Is there a way…

---

## [please, can you help me urgently](https://discourse.cmake.org/t/please-can-you-help-me-urgently/1673)

<div class="topic-metadata">

**Author:** [@Murat\_Serdar](https://discourse.cmake.org/u/Murat_Serdar)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 9:07pm UTC](https://discourse.cmake.org/t/please-can-you-help-me-urgently/1673 "2020-11-11T21:07:24Z")

</div>

Hello, ı need to run a engineering code but for cmake ım beginner. I have to go this process MCS compiling procedure: Open CMakeLists.txt and change the default library path, xsdir, and version of library. Open CMakeL…

---

## [After install, cmd says 'cmake' is not yet installed and can be installed with apt-get](https://discourse.cmake.org/t/after-install-cmd-says-cmake-is-not-yet-installed-and-can-be-installed-with-apt-get/1671)

<div class="topic-metadata">

**Author:** [@PedroRTomas](https://discourse.cmake.org/u/PedroRTomas)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 9:05pm UTC](https://discourse.cmake.org/t/after-install-cmd-says-cmake-is-not-yet-installed-and-can-be-installed-with-apt-get/1671 "2020-11-11T21:05:52Z")

</div>

Hello, I might be doing some confusion, but after: sudo ./bootstrap --prefix=/usr/bin && sudo make && sudo make install inside of cmake-3.16.8 folder, when I type ‘cmake’ in cmd, why do I get: The program ‘cmake’ is …

---

## [Setting environment variables when using CPACK](https://discourse.cmake.org/t/setting-environment-variables-when-using-cpack/1660)

<div class="topic-metadata">

**Author:** [@EosPengwern](https://discourse.cmake.org/u/EosPengwern)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 9:04pm UTC](https://discourse.cmake.org/t/setting-environment-variables-when-using-cpack/1660 "2020-11-11T21:04:10Z")

</div>

I’m trying to work out how I can build an installation package using CPack that will set environment variables and system paths (not only the main system path, but paths to plugins etc.) when the installation takes place…

---

## [CMake transitive dependency linked by name only](https://discourse.cmake.org/t/cmake-transitive-dependency-linked-by-name-only/1635)

<div class="topic-metadata">

**Author:** [@jakecobb](https://discourse.cmake.org/u/jakecobb)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 8:56pm UTC](https://discourse.cmake.org/t/cmake-transitive-dependency-linked-by-name-only/1635 "2020-11-11T20:56:06Z")

</div>

I did ask this on StackOverflow already without much luck, so apologies for the redundancy if you’ve already seen this. It seems that dylibs linked directly in target\_link\_libraries get linked by absolute path, but thos…

---

## [How to properly use TEST\_XML\_OUTPUT\_DIR?](https://discourse.cmake.org/t/how-to-properly-use-test-xml-output-dir/1630)

<div class="topic-metadata">

**Author:** [@mojca](https://discourse.cmake.org/u/mojca)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 8:52pm UTC](https://discourse.cmake.org/t/how-to-properly-use-test-xml-output-dir/1630 "2020-11-11T20:52:03Z")

</div>

I’m writing a CI script for an existing repository. I would like to simply run all the gtest-based unit tests with ctest (in parallel, if possible) and store the summary into one or more xml files, so that the CI system…

---

## [Cmake GUI 'Permission denied' errors, while building caffe.](https://discourse.cmake.org/t/cmake-gui-permission-denied-errors-while-building-caffe/1610)

<div class="topic-metadata">

**Author:** [@Katya](https://discourse.cmake.org/u/Katya)\
**Replies:** 2\
**Last updated:** [November 11, 2020, 5:33pm UTC](https://discourse.cmake.org/t/cmake-gui-permission-denied-errors-while-building-caffe/1610 "2020-11-11T17:33:24Z")

</div>

Hello could you please help with my errors? I have been at this for days trying to install caffe, first via make, now via cmake gui. I do not understand what is the matter with permissions: I have gone to the files about…

---

## [Environmental Variables not setting during SSH session](https://discourse.cmake.org/t/environmental-variables-not-setting-during-ssh-session/1605)

<div class="topic-metadata">

**Author:** [@jwinarske](https://discourse.cmake.org/u/jwinarske)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 5:30pm UTC](https://discourse.cmake.org/t/environmental-variables-not-setting-during-ssh-session/1605 "2020-11-11T17:30:57Z")

</div>

When setting environmental variable in Toolchain file, I see it set when locally logged into build machine. When I run the same thing during a SSH session, it doesn’t set. Is this by design? Example here: https://git…

---

## [Setting default install permissions globally](https://discourse.cmake.org/t/setting-default-install-permissions-globally/1598)

<div class="topic-metadata">

**Author:** [@globberwops](https://discourse.cmake.org/u/globberwops)\
**Replies:** 2\
**Last updated:** [November 11, 2020, 5:27pm UTC](https://discourse.cmake.org/t/setting-default-install-permissions-globally/1598 "2020-11-11T17:27:14Z")

</div>

I would like to be able to set global default install permissions, so I don’t have to either rewrite each and every install(...) command, or override it with a custom install(...) command in my project. There already is…

---

## [Visual Studio Filter Issues "Cmake Rules"](https://discourse.cmake.org/t/visual-studio-filter-issues-cmake-rules/1566)

<div class="topic-metadata">

**Author:** [@YMba9g8j9CJp0wLoQf5y](https://discourse.cmake.org/u/YMba9g8j9CJp0wLoQf5y)\
**Replies:** 3\
**Last updated:** [November 11, 2020, 5:26pm UTC](https://discourse.cmake.org/t/visual-studio-filter-issues-cmake-rules/1566 "2020-11-11T17:26:06Z")

</div>

Why is this filter CMake Rules being created when I create a Visual Studio project? I don’t know what is causing it. Any ideas would be appreciated.

---

## [How to get CMAKE\_NO\_SYSTEM\_FROM\_IMPORTED alike for a selected few of targets?](https://discourse.cmake.org/t/how-to-get-cmake-no-system-from-imported-alike-for-a-selected-few-of-targets/1515)

<div class="topic-metadata">

**Author:** [@Tobias\_Rittweiler](https://discourse.cmake.org/u/Tobias_Rittweiler)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 3:18pm UTC](https://discourse.cmake.org/t/how-to-get-cmake-no-system-from-imported-alike-for-a-selected-few-of-targets/1515 "2020-11-11T15:18:22Z")

</div>

Hi! In our project, we have true third-party dependencies (e.g. Boost, QT, googletest) and we have dependencies from other teams. We use find\_package() and target\_link\_libraries() for both kind of dependencies. While w…

---

## [Disable disector in wireshark](https://discourse.cmake.org/t/disable-disector-in-wireshark/1513)

<div class="topic-metadata">

**Author:** [@bnousilal](https://discourse.cmake.org/u/bnousilal)\
**Replies:** 5\
**Last updated:** [November 11, 2020, 3:15pm UTC](https://discourse.cmake.org/t/disable-disector-in-wireshark/1513 "2020-11-11T15:15:52Z")

</div>

Hi All, I am a newbie to cmake, please help me on the below queries. I have cross-compiled Wireshark 3.2.4 to generate the tsahrk binary and able to run it on the embedded platform. The issue is “libwireshark.so.13” s…

---

## [CMake tool discovery fails with custom compiler](https://discourse.cmake.org/t/cmake-tool-discovery-fails-with-custom-compiler/1508)

<div class="topic-metadata">

**Author:** [@schrc3b6](https://discourse.cmake.org/u/schrc3b6)\
**Replies:** 9\
**Last updated:** [November 11, 2020, 3:14pm UTC](https://discourse.cmake.org/t/cmake-tool-discovery-fails-with-custom-compiler/1508 "2020-11-11T15:14:25Z")

</div>

Hi, I’m trying to build my project with the scorep compiler wrapper for Instrumentation. However when calling cmake and setting the compiler via command line (as is described in their docu) the build fails. (http://s…

---

## [How to depend flags.make in the add\_custom\_command](https://discourse.cmake.org/t/how-to-depend-flags-make-in-the-add-custom-command/1488)

<div class="topic-metadata">

**Author:** [@lxy9527](https://discourse.cmake.org/u/lxy9527)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 3:03pm UTC](https://discourse.cmake.org/t/how-to-depend-flags-make-in-the-add-custom-command/1488 "2020-11-11T15:03:14Z")

</div>

as the title , I need use add\_custom\_command attach a output file to my target , and this output file need depend my\_target/flags.make, how can we get this direcotry ? Is there any macro?

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

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