# Latest

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

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

**Page:** 185

---

## [Link libraries with armcc/armlink](https://discourse.cmake.org/t/link-libraries-with-armcc-armlink/1928)

<div class="topic-metadata">

**Author:** [@SadE](https://discourse.cmake.org/u/SadE)\
**Replies:** 2\
**Last updated:** [November 23, 2020, 1:12pm UTC](https://discourse.cmake.org/t/link-libraries-with-armcc-armlink/1928 "2020-11-23T13:12:11Z")

</div>

Hi I’m trying to have a setup for the armcc compiler from Keil/ARM . The compiler is supported well but I get some problem linking libraries. The correct way of using the linker with test.c and sample.lib is armlink.e…

---

## [CTest: CMake fixtures and background service - no failed test](https://discourse.cmake.org/t/ctest-cmake-fixtures-and-background-service-no-failed-test/1869)

<div class="topic-metadata">

**Author:** [@Acki](https://discourse.cmake.org/u/Acki)\
**Replies:** 2\
**Last updated:** [November 22, 2020, 8:43pm UTC](https://discourse.cmake.org/t/ctest-cmake-fixtures-and-background-service-no-failed-test/1869 "2020-11-22T20:43:35Z")

</div>

I use CTest fixtures. In my FIXTURES\_SETUP I call a bash script, wich is starting a service in the background via: "$@" \> ${SERVICE\_LOG\_FILE} 2\>&1 & RESULT=$? You see how I store the log output via a text file Then …

---

## [Linking VL53L0X Api](https://discourse.cmake.org/t/linking-vl53l0x-api/1938)

<div class="topic-metadata">

**Author:** [@hack-mike](https://discourse.cmake.org/u/hack-mike)\
**Replies:** 1\
**Last updated:** [November 22, 2020, 7:51pm UTC](https://discourse.cmake.org/t/linking-vl53l0x-api/1938 "2020-11-22T19:51:54Z")

</div>

Hi everybody, I’m new in CMake and I have some difficult to import VL53L0X Api to my ESP-IDF project. I created inside Api folder this CMake.txt then in main/Cmake.txt I called add\_subdirectory(/Users/michelemocelli…

---

## [can you give me cmakelist.txt for nodejs source code?](https://discourse.cmake.org/t/can-you-give-me-cmakelist-txt-for-nodejs-source-code/1915)

<div class="topic-metadata">

**Author:** [@anlexN](https://discourse.cmake.org/u/anlexN)\
**Replies:** 1\
**Last updated:** [November 22, 2020, 7:46pm UTC](https://discourse.cmake.org/t/can-you-give-me-cmakelist-txt-for-nodejs-source-code/1915 "2020-11-22T19:46:33Z")

</div>

nodejs jetbrain clion ide need it to open nodejs source code correctly. nodejs team now can not give it and need some talking.so you cmake please help me.

---

## [CMake or VS issue: In Debug mode libcmt is linked together with libcmtd?](https://discourse.cmake.org/t/cmake-or-vs-issue-in-debug-mode-libcmt-is-linked-together-with-libcmtd/1911)

<div class="topic-metadata">

**Author:** [@ProTur1](https://discourse.cmake.org/u/ProTur1)\
**Replies:** 1\
**Last updated:** [November 22, 2020, 7:45pm UTC](https://discourse.cmake.org/t/cmake-or-vs-issue-in-debug-mode-libcmt-is-linked-together-with-libcmtd/1911 "2020-11-22T19:45:02Z")

</div>

CMake or VS issue? In Debug mode libcmt is linked together with libcmtd? Although I set for a release build /MT and for a debug build /MTd, in the debug mode the libcmt is still being linked, together with the libcmtd. …

---

## [add\_library(ALIAS) and target\_include\_directories](https://discourse.cmake.org/t/add-library-alias-and-target-include-directories/1877)

<div class="topic-metadata">

**Author:** [@davemilter](https://discourse.cmake.org/u/davemilter)\
**Replies:** 1\
**Last updated:** [November 22, 2020, 7:20pm UTC](https://discourse.cmake.org/t/add-library-alias-and-target-include-directories/1877 "2020-11-22T19:20:51Z")

</div>

For linux I use find\_package(ICU 57.1 COMPONENTS uc i18n data REQUIRED) all works fine. But for other platforms I want build icu package included as submodule. Again all works fine: target\_include\_directories(icuuc P…

---

## [Not finding BLAS libraries](https://discourse.cmake.org/t/not-finding-blas-libraries/1862)

<div class="topic-metadata">

**Author:** [@afernandezody](https://discourse.cmake.org/u/afernandezody)\
**Replies:** 1\
**Last updated:** [November 22, 2020, 7:15pm UTC](https://discourse.cmake.org/t/not-finding-blas-libraries/1862 "2020-11-22T19:15:48Z")

</div>

Hello, This might be a basic issue but cmake is not able to find BLAS for some reason. The system is running CentOS8 and spitting out the error: … – Trying to figure out … – Compiler: GNU – libstdc++/C++ compiler v…

---

## [Using CMake with Ninja and MSVC on Cygwin's Mintty terminal.](https://discourse.cmake.org/t/using-cmake-with-ninja-and-msvc-on-cygwins-mintty-terminal/1722)

<div class="topic-metadata">

**Author:** [@underdisc](https://discourse.cmake.org/u/underdisc)\
**Replies:** 6\
**Last updated:** [November 20, 2020, 7:08pm UTC](https://discourse.cmake.org/t/using-cmake-with-ninja-and-msvc-on-cygwins-mintty-terminal/1722 "2020-11-20T19:08:34Z")

</div>

Sorry in advance because this is a little long, but I have been trying to get this to work for about a week now with no luck. I have come pretty far, but there are still a few problems preventing me from finishing this. …

---

## [CMake 3.19.0 available for download](https://discourse.cmake.org/t/cmake-3-19-0-available-for-download/2198)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 10\
**Last updated:** [November 20, 2020, 5:01pm UTC](https://discourse.cmake.org/t/cmake-3-19-0-available-for-download/2198 "2020-11-20T17:01:03Z")

</div>

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

---

## [CMake 3.18.5 available for download](https://discourse.cmake.org/t/cmake-3-18-5-available-for-download/2197)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 2\
**Last updated:** [November 20, 2020, 1:45pm UTC](https://discourse.cmake.org/t/cmake-3-18-5-available-for-download/2197 "2020-11-20T13:45:23Z")

</div>

We are pleased to announce that CMake 3.18.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.18.5 since 3.18.4: …

---

## [How to stop CMake from appending shared libraries on a Cray?](https://discourse.cmake.org/t/how-to-stop-cmake-from-appending-shared-libraries-on-a-cray/1826)

<div class="topic-metadata">

**Author:** [@jrobcary](https://discourse.cmake.org/u/jrobcary)\
**Replies:** 2\
**Last updated:** [November 19, 2020, 3:39pm UTC](https://discourse.cmake.org/t/how-to-stop-cmake-from-appending-shared-libraries-on-a-cray/1826 "2020-11-19T15:39:22Z")

</div>

3.18.2 The end of my link line has -lz -ldl -lrt /global/project/projectdirs/txsupp/vp11usrs/cori/contrib-gcc8.3/muparser-2.2.6.1-ser/lib64/libmuparser.a /global/project/projectdirs/txsupp/vp11usrs/cori/contrib-gcc8.…

---

## [How to create ALIAS targets for all of my libs in one command?](https://discourse.cmake.org/t/how-to-create-alias-targets-for-all-of-my-libs-in-one-command/2200)

<div class="topic-metadata">

**Author:** [@oliver](https://discourse.cmake.org/u/oliver)\
**Replies:** 1\
**Last updated:** [November 19, 2020, 2:58pm UTC](https://discourse.cmake.org/t/how-to-create-alias-targets-for-all-of-my-libs-in-one-command/2200 "2020-11-19T14:58:51Z")

</div>

I’m in the process of porting my project from GNU Make to CMake, and am now creating the exported CMake file. I want to add all of my exported libraries into a namespace, since that appears to be good practice. However, …

---

## [Override system include directories on MacOS](https://discourse.cmake.org/t/override-system-include-directories-on-macos/1850)

<div class="topic-metadata">

**Author:** [@MathiasMagnus](https://discourse.cmake.org/u/MathiasMagnus)\
**Replies:** 1\
**Last updated:** [November 19, 2020, 1:29pm UTC](https://discourse.cmake.org/t/override-system-include-directories-on-macos/1850 "2020-11-19T13:29:42Z")

</div>

I’m trying to create imported targets to consume OpenCL components. Previously the project relied on include\_directories() to specify non-system include directories. However, once I moved to installing components as prop…

---

## [Set CPACK\_DEBIAN\_PACKAGE\_DEPENDS from subproject library](https://discourse.cmake.org/t/set-cpack-debian-package-depends-from-subproject-library/1803)

<div class="topic-metadata">

**Author:** [@DKLind](https://discourse.cmake.org/u/DKLind)\
**Replies:** 1\
**Last updated:** [November 19, 2020, 1:17pm UTC](https://discourse.cmake.org/t/set-cpack-debian-package-depends-from-subproject-library/1803 "2020-11-19T13:17:51Z")

</div>

I have a very large CMake project with lots of binary and library subprojects. I am using CPACK\_DEBIAN\_PACKAGE\_GENERATE\_SHLIBS to automatically set CPACK\_DEBIAN\_PACKAGE\_DEPENDS from external libraries for a target. Is t…

---

## [Why fixtures are forced to be tests?](https://discourse.cmake.org/t/why-fixtures-are-forced-to-be-tests/2194)

<div class="topic-metadata">

**Author:** [@james\_brown](https://discourse.cmake.org/u/james_brown)\
**Replies:** 7\
**Last updated:** [November 18, 2020, 7:30pm UTC](https://discourse.cmake.org/t/why-fixtures-are-forced-to-be-tests/2194 "2020-11-18T19:30:48Z")

</div>

Hi, I am here to understand why you made fixtures doomed to be tests. I would also like to be pointed on a solution that avoid drawbacks I get now. My usecase I need to make my tests to touch a file automatically when t…

---

## [AUTORCC](https://discourse.cmake.org/t/autorcc/2179)

<div class="topic-metadata">

**Author:** [@Smirnov\_Kirill\_Contr](https://discourse.cmake.org/u/Smirnov_Kirill_Contr)\
**Replies:** 5\
**Last updated:** [November 18, 2020, 4:26pm UTC](https://discourse.cmake.org/t/autorcc/2179 "2020-11-18T16:26:06Z")

</div>

Hello There is a project on Qt5.6.2 / CMake With CMake 3.9.2 on windows and CMake 3.10.2 on Linux project builds with no problem Automatic MOC, UIC and RCC for target SomeLibrary When CMake was updated to 3.18.4 (o…

---

## [Verifying Fortran/C Compiler Fails](https://discourse.cmake.org/t/verifying-fortran-c-compiler-fails/2183)

<div class="topic-metadata">

**Author:** [@RonRahaman](https://discourse.cmake.org/u/RonRahaman)\
**Replies:** 5\
**Last updated:** [November 18, 2020, 3:52pm UTC](https://discourse.cmake.org/t/verifying-fortran-c-compiler-fails/2183 "2020-11-18T15:52:32Z")

</div>

Hi all, FortranCInterface\_VERIFY isn’t working on my Mac after an OS and compiler updates. I’m running on macOS 11 with gcc-10 from Homebrew and cmake 18. I’m getting these errors in stdout (let me know if you want to …

---

## [README not packaged in tar.gz or .pkg file in CPack\_install\_scripts](https://discourse.cmake.org/t/readme-not-packaged-in-tar-gz-or-pkg-file-in-cpack-install-scripts/2192)

<div class="topic-metadata">

**Author:** [@reikdas](https://discourse.cmake.org/u/reikdas)\
**Replies:** 5\
**Last updated:** [November 18, 2020, 6:29am UTC](https://discourse.cmake.org/t/readme-not-packaged-in-tar-gz-or-pkg-file-in-cpack-install-scripts/2192 "2020-11-18T06:29:17Z")

</div>

Somewhat related to - https://discourse.cmake.org/t/cpack-script-not-recognizing-cmake-binary-dir/2191 These are some steps in my CPack configuration file - .... configure\_file(README.md README.md COPYONLY) set(CPACK\_P…

---

## [CPack script not recognizing CMAKE\_BINARY\_DIR](https://discourse.cmake.org/t/cpack-script-not-recognizing-cmake-binary-dir/2191)

<div class="topic-metadata">

**Author:** [@reikdas](https://discourse.cmake.org/u/reikdas)\
**Replies:** 1\
**Last updated:** [November 17, 2020, 4:27pm UTC](https://discourse.cmake.org/t/cpack-script-not-recognizing-cmake-binary-dir/2191 "2020-11-17T16:27:01Z")

</div>

For my CPack configuration, I have a step where I do - set(CPACK\_INSTALL\_SCRIPTS ${CMAKE\_SOURCE\_DIR}/cmake/CPackfoo.cmake) Inside CPackfoo.cmake , I am using a command - execute\_process(COMMAND textutil -convert html …

---

## [Linux cross-compile x64 to aarch64](https://discourse.cmake.org/t/linux-cross-compile-x64-to-aarch64/1752)

<div class="topic-metadata">

**Author:** [@Frederick\_Gotham](https://discourse.cmake.org/u/Frederick_Gotham)\
**Replies:** 6\
**Last updated:** [November 17, 2020, 3:22pm UTC](https://discourse.cmake.org/t/linux-cross-compile-x64-to-aarch64/1752 "2020-11-17T15:22:08Z")

</div>

Unless anyone can convince me of otherwise, I’ve given up on cmake being able to cross-compile on Linux from x64 to aarch64. I started this topic about it earlier on a C group: https://groups.google.com/forum/#!topic/c…

---

## [cmake 3.8 and higher for debian stretch](https://discourse.cmake.org/t/cmake-3-8-and-higher-for-debian-stretch/223)

<div class="topic-metadata">

**Author:** [@graeme61](https://discourse.cmake.org/u/graeme61)\
**Replies:** 13\
**Last updated:** [November 17, 2020, 2:03pm UTC](https://discourse.cmake.org/t/cmake-3-8-and-higher-for-debian-stretch/223 "2020-11-17T14:03:42Z")

</div>

Have cmake 3.7.2 on linux. A piece of software im trying to run requires 3.8.0 and above . If i use apt-get install ,it installs the same version. How can i upgrade cmake for the debian stretch or is the debian versio…

---

## [find\_package(JNI) not able to find JNI (cmake v 3.17)](https://discourse.cmake.org/t/find-package-jni-not-able-to-find-jni-cmake-v-3-17/2075)

<div class="topic-metadata">

**Author:** [@yisseamake](https://discourse.cmake.org/u/yisseamake)\
**Replies:** 3\
**Last updated:** [November 17, 2020, 2:25am UTC](https://discourse.cmake.org/t/find-package-jni-not-able-to-find-jni-cmake-v-3-17/2075 "2020-11-17T02:25:04Z")

</div>

I am getting error indicating failure to find JNI package while it is installed correctly in pretty standard location /opt/jdk/jdk8 (ubuntu 14.04, e.g /opt/jdk/jdk8/jre/lib/amd64/server/libjvm.so ) and JAVA\_HOME variabl…

---

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

<div class="topic-metadata">

**Author:** [@sandy-lcq](https://discourse.cmake.org/u/sandy-lcq)\
**Replies:** 2\
**Last updated:** [November 17, 2020, 2:19am UTC](https://discourse.cmake.org/t/cannot-link-to-dynamic-library-during-parallel-build/1685 "2020-11-17T02:19:13Z")

</div>

I met a compile fail problem, which is caused by 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 explicitly change targ…

---

## [Copy dll's to runtime\_output\_directory via Imported\_Location property?](https://discourse.cmake.org/t/copy-dlls-to-runtime-output-directory-via-imported-location-property/1544)

<div class="topic-metadata">

**Author:** [@craffael](https://discourse.cmake.org/u/craffael)\
**Replies:** 5\
**Last updated:** [November 16, 2020, 3:54pm UTC](https://discourse.cmake.org/t/copy-dlls-to-runtime-output-directory-via-imported-location-property/1544 "2020-11-16T15:54:21Z")

</div>

Lets say I have two shared Libraries A, B and an Executable E. E depends on B and B depends on A: E -\> B -\> A Now assume that A and B are imported shared library targets that have their IMPORTED\_LOCATION properly set. …

---

## [How to get pseudo-target information when wrapping CMake](https://discourse.cmake.org/t/how-to-get-pseudo-target-information-when-wrapping-cmake/1737)

<div class="topic-metadata">

**Author:** [@lacasseio](https://discourse.cmake.org/u/lacasseio)\
**Replies:** 3\
**Last updated:** [November 16, 2020, 2:51pm UTC](https://discourse.cmake.org/t/how-to-get-pseudo-target-information-when-wrapping-cmake/1737 "2020-11-16T14:51:16Z")

</div>

The file-api’s codemodel allows gathering information about targets but explicitly exclude INTERFACE libraries: A JSON array of entries corresponding to the build system targets. Such targets are created by calls to ad…

---

## [Suggestions for getting crc32c library working with CMAKE\_OSX\_ARCHITECTURES](https://discourse.cmake.org/t/suggestions-for-getting-crc32c-library-working-with-cmake-osx-architectures/1794)

<div class="topic-metadata">

**Author:** [@hjmallon](https://discourse.cmake.org/u/hjmallon)\
**Replies:** 3\
**Last updated:** [November 16, 2020, 10:47am UTC](https://discourse.cmake.org/t/suggestions-for-getting-crc32c-library-working-with-cmake-osx-architectures/1794 "2020-11-16T10:47:46Z")

</div>

Google’s crc32c library is pretty small and gives good performing crc32c implementations for arm and intel https://github.com/google/crc32c It currently builds for Intel (everywhere) and arm on linux. My PR here gets it…

---

## [Visual Studio Compile errors](https://discourse.cmake.org/t/visual-studio-compile-errors/2178)

<div class="topic-metadata">

**Author:** [@magicianyuan](https://discourse.cmake.org/u/magicianyuan)\
**Replies:** 2\
**Last updated:** [November 16, 2020, 1:57am UTC](https://discourse.cmake.org/t/visual-studio-compile-errors/2178 "2020-11-16T01:57:10Z")

</div>

There is an error happened while compiling my codes with CMAKE.By the way, i was working on windows system. The detail information is “Check for working CXX compiler: D:/mingw/bin/c++.exe --broken” This error has nev…

---

## [MAP\_IMPORTED\_CONFIG\_RELWITHDEBINFO in ExternalProject\_Add](https://discourse.cmake.org/t/map-imported-config-relwithdebinfo-in-externalproject-add/1785)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.cmake.org/u/dzenanz)\
**Replies:** 1\
**Last updated:** [November 15, 2020, 2:49pm UTC](https://discourse.cmake.org/t/map-imported-config-relwithdebinfo-in-externalproject-add/1785 "2020-11-15T14:49:40Z")

</div>

OpenCV only defines two configurations, Debug and Release. Trying to build a dependent project in RelWithDebInfo causes a link error on MSVC. A solution to that is to set MAP\_IMPORTED\_CONFIG\_RELWITHDEBINFO to RELEASE. H…

---

## [Consider calling initProp("Fortran\_VISIBILITY\_PRESET")](https://discourse.cmake.org/t/consider-calling-initprop-fortran-visibility-preset/1771)

<div class="topic-metadata">

**Author:** [@coldfix](https://discourse.cmake.org/u/coldfix)\
**Replies:** 2\
**Last updated:** [November 15, 2020, 2:42pm UTC](https://discourse.cmake.org/t/consider-calling-initprop-fortran-visibility-preset/1771 "2020-11-15T14:42:26Z")

</div>

Hi, I noticed that the CMAKE\_Fortran\_VISIBILITY\_PRESET behaves somewhat different than the same flag for other languages in that it cannot be specified from the cmake command line: cmake . -DCMAKE\_Fortran\_VISIBILITY\_PR…

---

## [CMake not generating CMakeFiles/Makefile.cmake](https://discourse.cmake.org/t/cmake-not-generating-cmakefiles-makefile-cmake/1758)

<div class="topic-metadata">

**Author:** [@dwnylen](https://discourse.cmake.org/u/dwnylen)\
**Replies:** 1\
**Last updated:** [November 15, 2020, 2:35pm UTC](https://discourse.cmake.org/t/cmake-not-generating-cmakefiles-makefile-cmake/1758 "2020-11-15T14:35:00Z")

</div>

I’m using CMake (3.18.2) with CLion under Linux, and I’m hitting a weird problem with generating unix makefiles in my project. Specifically, CLion expects there to be a CMakeFiles/Makefile.cmake file that it uses for dep…

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

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