# Latest

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

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

**Page:** 189

---

## [CMake not recognizing compiler on MacOS with Xcode Generator](https://discourse.cmake.org/t/cmake-not-recognizing-compiler-on-macos-with-xcode-generator/1169)

<div class="topic-metadata">

**Author:** [@Manav\_Bhatia](https://discourse.cmake.org/u/Manav_Bhatia)\
**Replies:** 3\
**Last updated:** [October 22, 2020, 12:27pm UTC](https://discourse.cmake.org/t/cmake-not-recognizing-compiler-on-macos-with-xcode-generator/1169 "2020-10-22T12:27:56Z")

</div>

Hi, I have installed CMake 3.17.1, gcc 9.3.0, openmpi 3.1.5 and other tools on my Mac (10.15.4) using spack. I am able to configure and build my code with the following options cmake ../ \\ -DMPI\_C\_COMPILER=mpicc -DMPI…

---

## [Best practices for option naming?](https://discourse.cmake.org/t/best-practices-for-option-naming/2039)

<div class="topic-metadata">

**Author:** [@bjornblissing](https://discourse.cmake.org/u/bjornblissing)\
**Replies:** 2\
**Last updated:** [October 21, 2020, 4:30pm UTC](https://discourse.cmake.org/t/best-practices-for-option-naming/2039 "2020-10-21T16:30:51Z")

</div>

I recently came across this “problem” while I restructuring our source tree. Previously our third party dependencies were in the same repository as our own code and include by hand in our own CMake files. We changed thi…

---

## [How do I specify different binaries to link against for Visual Studio debug and release, but be able to select either](https://discourse.cmake.org/t/how-do-i-specify-different-binaries-to-link-against-for-visual-studio-debug-and-release-but-be-able-to-select-either/2026)

<div class="topic-metadata">

**Author:** [@imlost](https://discourse.cmake.org/u/imlost)\
**Replies:** 7\
**Last updated:** [October 21, 2020, 4:22pm UTC](https://discourse.cmake.org/t/how-do-i-specify-different-binaries-to-link-against-for-visual-studio-debug-and-release-but-be-able-to-select-either/2026 "2020-10-21T16:22:25Z")

</div>

How do I specify in CMAKE that binary file A is for debug and B is for release when linking, but in such a way I can still toggle between the two in VS and not have to do cmake … each time I need to switch between the tw…

---

## [How to add custom command after compilation stage and before linking stage?](https://discourse.cmake.org/t/how-to-add-custom-command-after-compilation-stage-and-before-linking-stage/2033)

<div class="topic-metadata">

**Author:** [@psionic12](https://discourse.cmake.org/u/psionic12)\
**Replies:** 2\
**Last updated:** [October 20, 2020, 8:58am UTC](https://discourse.cmake.org/t/how-to-add-custom-command-after-compilation-stage-and-before-linking-stage/2033 "2020-10-20T08:58:20Z")

</div>

Hi, I’m a writer of a code generator tool, and the tool must be run after the compilation stage and before linking stage. We use makefile before and this is not a problem, but when ports to cmake, I only find adding fl…

---

## [Boost Linker Issues](https://discourse.cmake.org/t/boost-linker-issues/2030)

<div class="topic-metadata">

**Author:** [@LavaMaster](https://discourse.cmake.org/u/LavaMaster)\
**Replies:** 17\
**Last updated:** [October 20, 2020, 7:45am UTC](https://discourse.cmake.org/t/boost-linker-issues/2030 "2020-10-20T07:45:05Z")

</div>

I am using the Boost library and I am having some linker issues. Currently my code is outputting this: Undefined symbols for architecture x86\_64: “boost::program\_options::to\_internal(std::\_\_1::basic\_string\<char, std::\_…

---

## [cmake/ctest generate Test.xml (without rebuilding?) / could not load cache](https://discourse.cmake.org/t/cmake-ctest-generate-test-xml-without-rebuilding-could-not-load-cache/2025)

<div class="topic-metadata">

**Author:** [@KantarBruceAdams](https://discourse.cmake.org/u/KantarBruceAdams)\
**Replies:** 0\
**Last updated:** [October 19, 2020, 2:58pm UTC](https://discourse.cmake.org/t/cmake-ctest-generate-test-xml-without-rebuilding-could-not-load-cache/2025 "2020-10-19T14:58:49Z")

</div>

I have a cmake based (C++) project which includes tests created via add\_test(). The build process is basically: cmake make all testsuite make test This has worked well for some time. I am now trying to get my build …

---

## [\`CXX\_EXTENSIONS\` and \`/permissive-\`](https://discourse.cmake.org/t/cxx-extensions-and-permissive/1994)

<div class="topic-metadata">

**Author:** [@MathiasMagnus](https://discourse.cmake.org/u/MathiasMagnus)\
**Replies:** 1\
**Last updated:** [October 18, 2020, 3:17am UTC](https://discourse.cmake.org/t/cxx-extensions-and-permissive/1994 "2020-10-18T03:17:05Z")

</div>

AFAICT when I’m compiling a C++ target with the property CXX\_EXTENSIONS=OFF using MSVC, CMake doesn’t add the /permissive- flag, which as per the docs: You can use the /permissive- compiler option to specify standards-…

---

## [What cmake method is used to configure the Randomized Base Address option in Linker for VS2015 Project ?](https://discourse.cmake.org/t/what-cmake-method-is-used-to-configure-the-randomized-base-address-option-in-linker-for-vs2015-project/2016)

<div class="topic-metadata">

**Author:** [@mirro187](https://discourse.cmake.org/u/mirro187)\
**Replies:** 1\
**Last updated:** [October 18, 2020, 3:07am UTC](https://discourse.cmake.org/t/what-cmake-method-is-used-to-configure-the-randomized-base-address-option-in-linker-for-vs2015-project/2016 "2020-10-18T03:07:45Z")

</div>

---

## [trouble with find\_package(iconv) and include(FindIconv) on AIX](https://discourse.cmake.org/t/trouble-with-find-package-iconv-and-include-findiconv-on-aix/2006)

<div class="topic-metadata">

**Author:** [@datalogics-robb](https://discourse.cmake.org/u/datalogics-robb)\
**Replies:** 4\
**Last updated:** [October 16, 2020, 11:50am UTC](https://discourse.cmake.org/t/trouble-with-find-package-iconv-and-include-findiconv-on-aix/2006 "2020-10-16T11:50:12Z")

</div>

I have discovered (while building Doxygen) that the iconv test fails on AIX with g++ because of incorrect (for AIX) linking. I took the test’s code: (python-env-nepal) robb@nepal:/raid/proj/procyon/checkouts-procyon/ro…

---

## [Replace default compiler option (-o, -c, etc..) with CCRX-supported options (-output,…)](https://discourse.cmake.org/t/replace-default-compiler-option-o-c-etc-with-ccrx-supported-options-output/2004)

<div class="topic-metadata">

**Author:** [@xuan97z1](https://discourse.cmake.org/u/xuan97z1)\
**Replies:** 3\
**Last updated:** [October 15, 2020, 1:59pm UTC](https://discourse.cmake.org/t/replace-default-compiler-option-o-c-etc-with-ccrx-supported-options-output/2004 "2020-10-15T13:59:55Z")

</div>

Hi, I am working on a Renesas CCRX-based CMakeLists.txt for AmazonFreeRTOS project. However, I ran into the following error when I did a ‘make all’: E0511108:The “-o” option is not recognized. E0511134:Input file “CM…

---

## [CMake Property + Generator expression to get all dependent libraries?](https://discourse.cmake.org/t/cmake-property-generator-expression-to-get-all-dependent-libraries/1898)

<div class="topic-metadata">

**Author:** [@AndrewGaspar](https://discourse.cmake.org/u/AndrewGaspar)\
**Replies:** 5\
**Last updated:** [October 15, 2020, 12:50pm UTC](https://discourse.cmake.org/t/cmake-property-generator-expression-to-get-all-dependent-libraries/1898 "2020-10-15T12:50:55Z")

</div>

Is there any way to get the list of all dependent libraries for a target, including transitive dependencies, via a generator expression? The Target property INTERFACE\_LINK\_LIBRARIES says it includes transitive dependenci…

---

## [VS 2017: Custom commands don't cascade correctly](https://discourse.cmake.org/t/vs-2017-custom-commands-dont-cascade-correctly/2000)

<div class="topic-metadata">

**Author:** [@Angew](https://discourse.cmake.org/u/Angew)\
**Replies:** 3\
**Last updated:** [October 15, 2020, 7:14am UTC](https://discourse.cmake.org/t/vs-2017-custom-commands-dont-cascade-correctly/2000 "2020-10-15T07:14:52Z")

</div>

I have a custom target which produces an end result using a two-step process similar to compilation & linking. My problem is that as soon as more than one source file is involved, updates do not cascade correctly in one …

---

## [IMPLICIT\_DEPENDS - does not work](https://discourse.cmake.org/t/implicit-depends-does-not-work/1966)

<div class="topic-metadata">

**Author:** [@swoo.quek](https://discourse.cmake.org/u/swoo.quek)\
**Replies:** 12\
**Last updated:** [October 14, 2020, 3:56pm UTC](https://discourse.cmake.org/t/implicit-depends-does-not-work/1966 "2020-10-14T15:56:20Z")

</div>

I have been trying to do this: add\_custom\_command( OUTPUT … COMMAND … IMPLICIT\_DEPENDS C “C:/WS/project1/timer\_x.c” VERBATIM ) but I cannot get the dependencies scanner to work correctly What I want is, if any he…

---

## [CMakePresets.json section appears too early in the cmake(1) doc](https://discourse.cmake.org/t/cmakepresets-json-section-appears-too-early-in-the-cmake-1-doc/1998)

<div class="topic-metadata">

**Author:** [@craig.scott](https://discourse.cmake.org/u/craig.scott)\
**Replies:** 3\
**Last updated:** [October 14, 2020, 12:47pm UTC](https://discourse.cmake.org/t/cmakepresets-json-section-appears-too-early-in-the-cmake-1-doc/1998 "2020-10-14T12:47:44Z")

</div>

The CMakePresets.json feature newly added in CMake 3.19 takes up a substantial amount of space early in the page for the cmake(1) documentation. It should have its own section within that page and I would suggest it shou…

---

## [Correct use of CMAKE\_CUDA\_ARCHITECTURES](https://discourse.cmake.org/t/correct-use-of-cmake-cuda-architectures/1250)

<div class="topic-metadata">

**Author:** [@mojca](https://discourse.cmake.org/u/mojca)\
**Replies:** 7\
**Last updated:** [October 14, 2020, 8:32am UTC](https://discourse.cmake.org/t/correct-use-of-cmake-cuda-architectures/1250 "2020-10-14T08:32:22Z")

</div>

I was looking for ways to properly target different compute capabilities of cuda devices and found a couple of new policies for 3.18. So I tried (simplified): cmake\_minimum\_required(VERSION 3.17 FATAL\_ERROR) cmake\_poli…

---

## [Feature Request: target\_include\_files()](https://discourse.cmake.org/t/feature-request-target-include-files/1992)

<div class="topic-metadata">

**Author:** [@random](https://discourse.cmake.org/u/random)\
**Replies:** 4\
**Last updated:** [October 13, 2020, 1:52pm UTC](https://discourse.cmake.org/t/feature-request-target-include-files/1992 "2020-10-13T13:52:40Z")

</div>

First post so please let me know if I’ve broken some rule. Is there any way to add files in the same manner as target include directories but for individual files? If not, would it be possible to add one? My use case i…

---

## [Disable warning on fetched projects](https://discourse.cmake.org/t/disable-warning-on-fetched-projects/1978)

<div class="topic-metadata">

**Author:** [@Leon0402](https://discourse.cmake.org/u/Leon0402)\
**Replies:** 7\
**Last updated:** [October 13, 2020, 3:30am UTC](https://discourse.cmake.org/t/disable-warning-on-fetched-projects/1978 "2020-10-13T03:30:38Z")

</div>

Hi, I wonder how I could disable warnings on header files, which are not part of my project (e.g. those in libaries I use and included via fetchContent). For instance I get: »bool std::uncaught\_exception()« is depcrea…

---

## [What cmake method is used to configure the Additional Dependencies option in Librarian for VS Static library project ?](https://discourse.cmake.org/t/what-cmake-method-is-used-to-configure-the-additional-dependencies-option-in-librarian-for-vs-static-library-project/1993)

<div class="topic-metadata">

**Author:** [@mirro187](https://discourse.cmake.org/u/mirro187)\
**Replies:** 1\
**Last updated:** [October 12, 2020, 5:25pm UTC](https://discourse.cmake.org/t/what-cmake-method-is-used-to-configure-the-additional-dependencies-option-in-librarian-for-vs-static-library-project/1993 "2020-10-12T17:25:37Z")

</div>

---

## [Building Alembic on Ubuntu : Could NOT find Boost](https://discourse.cmake.org/t/building-alembic-on-ubuntu-could-not-find-boost/1986)

<div class="topic-metadata">

**Author:** [@johhnry](https://discourse.cmake.org/u/johhnry)\
**Replies:** 2\
**Last updated:** [October 11, 2020, 9:56pm UTC](https://discourse.cmake.org/t/building-alembic-on-ubuntu-could-not-find-boost/1986 "2020-10-11T21:56:47Z")

</div>

Hi, I am trying to build the Alembic project which uses the FindBoost module to check if boost python is installed. The code responsible for doing that is in the alembic/cmake/AlembicBoost.cmake file which does the fol…

---

## [Help with Visual Studio Generator](https://discourse.cmake.org/t/help-with-visual-studio-generator/1957)

<div class="topic-metadata">

**Author:** [@DavidA](https://discourse.cmake.org/u/DavidA)\
**Replies:** 5\
**Last updated:** [October 9, 2020, 8:59am UTC](https://discourse.cmake.org/t/help-with-visual-studio-generator/1957 "2020-10-09T08:59:50Z")

</div>

I have a CMake project that works fine on Linux and which I am now porting to Windows, where I want to build from the command line using the Visual Studio C++ tools. I initially used the Ninja generator on Windows but g…

---

## [Ceres solver & CMake Issue on Ubuntu 18.04](https://discourse.cmake.org/t/ceres-solver-cmake-issue-on-ubuntu-18-04/1980)

<div class="topic-metadata">

**Author:** [@Ceccand](https://discourse.cmake.org/u/Ceccand)\
**Replies:** 4\
**Last updated:** [October 9, 2020, 4:39am UTC](https://discourse.cmake.org/t/ceres-solver-cmake-issue-on-ubuntu-18-04/1980 "2020-10-09T04:39:34Z")

</div>

Hello I am trying to install Ceres-solver on UBUNTU 18.04. But always I got following feedback related to CMake. \[100%\] Built target bundle\_adjuster ^Cexamples/CMakeFiles/nist.dir/build.make:62: recipe for target ‘exa…

---

## [CMake Configuration uses a file which will only be generated during Build time](https://discourse.cmake.org/t/cmake-configuration-uses-a-file-which-will-only-be-generated-during-build-time/1965)

<div class="topic-metadata">

**Author:** [@swoo.quek](https://discourse.cmake.org/u/swoo.quek)\
**Replies:** 3\
**Last updated:** [October 7, 2020, 2:04pm UTC](https://discourse.cmake.org/t/cmake-configuration-uses-a-file-which-will-only-be-generated-during-build-time/1965 "2020-10-07T14:04:08Z")

</div>

I have a custom command which uses a file generated (during Build time) by another custom command: add\_custom\_command( #Command\_A … #generate myfile.txt … ) add\_custom\_command( #Command\_B … #uses myfile.txt … ) …

---

## [CMake 3.18.4 available for download](https://discourse.cmake.org/t/cmake-3-18-4-available-for-download/1975)

<div class="topic-metadata">

**Author:** [@robert.maynard](https://discourse.cmake.org/u/robert.maynard)\
**Replies:** 0\
**Last updated:** [October 6, 2020, 6:18pm UTC](https://discourse.cmake.org/t/cmake-3-18-4-available-for-download/1975 "2020-10-06T18:18:25Z")

</div>

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

---

## [Rebuild external project's dependent targets when the external project changes?](https://discourse.cmake.org/t/rebuild-external-projects-dependent-targets-when-the-external-project-changes/1937)

<div class="topic-metadata">

**Author:** [@dtgriscom](https://discourse.cmake.org/u/dtgriscom)\
**Replies:** 4\
**Last updated:** [October 2, 2020, 5:51pm UTC](https://discourse.cmake.org/t/rebuild-external-projects-dependent-targets-when-the-external-project-changes/1937 "2020-10-02T17:51:58Z")

</div>

I’m working on a cross-compilation project with a top-level CMakeLists.txt file generating Makefiles. Some of the cross-compiled source code is generated by a host-based code generation tool; since that tool needs a diff…

---

## [$\<0\> genex doesn't evaluate argument, $\<IF\> evaluates both. Is that intentional?](https://discourse.cmake.org/t/0-genex-doesnt-evaluate-argument-if-evaluates-both-is-that-intentional/1960)

<div class="topic-metadata">

**Author:** [@Angew](https://discourse.cmake.org/u/Angew)\
**Replies:** 2\
**Last updated:** [October 2, 2020, 3:08pm UTC](https://discourse.cmake.org/t/0-genex-doesnt-evaluate-argument-if-evaluates-both-is-that-intentional/1960 "2020-10-02T15:08:09Z")

</div>

I’ve been hit by a difference between $\<0:x\> and $\<IF:c,x,y\> which I considered unexpected, and wanted to ask whether it’s intentional. In these example, assume target foo does not exist. Tested with CMake 3.18.3. The …

---

## [install( FILES ... ) installing all files in directory when single file is specified](https://discourse.cmake.org/t/install-files-installing-all-files-in-directory-when-single-file-is-specified/1955)

<div class="topic-metadata">

**Author:** [@Matthew\_Polder](https://discourse.cmake.org/u/Matthew_Polder)\
**Replies:** 1\
**Last updated:** [October 2, 2020, 12:04am UTC](https://discourse.cmake.org/t/install-files-installing-all-files-in-directory-when-single-file-is-specified/1955 "2020-10-02T00:04:08Z")

</div>

Hi, I’m using cmake 3.17.0 and then tried 3.17.5. Our cmake code base uses the commands: message( STATUS “---- ${resolvedFileToInstall} -\> ${to\_directory}” ) install( FILES “${resolvedFileToInstall}” DESTINATION “${…

---

## [\[announce\] xPack CMake - an alternate cross-platform binary distribution](https://discourse.cmake.org/t/announce-xpack-cmake-an-alternate-cross-platform-binary-distribution/1952)

<div class="topic-metadata">

**Author:** [@ilg](https://discourse.cmake.org/u/ilg)\
**Replies:** 0\
**Last updated:** [September 30, 2020, 7:14pm UTC](https://discourse.cmake.org/t/announce-xpack-cmake-an-alternate-cross-platform-binary-distribution/1952 "2020-09-30T19:14:38Z")

</div>

We are pleased to announce the first release of the xPack CMake as an alternate cross-platform binary distribution of the CMake build system. The binaries are available from: All binaries are standalone, which means …

---

## [ATTACHED\_FILES](https://discourse.cmake.org/t/attached-files/1641)

<div class="topic-metadata">

**Author:** [@David\_Dixon](https://discourse.cmake.org/u/David_Dixon)\
**Replies:** 5\
**Last updated:** [October 1, 2020, 4:55pm UTC](https://discourse.cmake.org/t/attached-files/1641 "2020-10-01T16:55:09Z")

</div>

All, I am attaching some \*.svg files to a test for upload which appears to work except that when clicking on the attachment link in the dashboard I see an empty page… Are there limitations to what can be attached? Thou…

---

## [Bug report - CMake 3.18 findMPI can't find MS-MPI](https://discourse.cmake.org/t/bug-report-cmake-3-18-findmpi-cant-find-ms-mpi/1948)

<div class="topic-metadata">

**Author:** [@tmishima](https://discourse.cmake.org/u/tmishima)\
**Replies:** 2\
**Last updated:** [October 1, 2020, 12:21pm UTC](https://discourse.cmake.org/t/bug-report-cmake-3-18-findmpi-cant-find-ms-mpi/1948 "2020-10-01T12:21:52Z")

</div>

Hi folks, I’m not sure if this is the right place to submit a bug report (if not, please tell me where it is). The CMake 3.18 findMPI on Windows 10 can’t find MS-MPI for Fortran. After some investigations, I found that…

---

## [FindBLAS with Fujitsu libraries](https://discourse.cmake.org/t/findblas-with-fujitsu-libraries/1953)

<div class="topic-metadata">

**Author:** [@Sreepathi\_Sarat](https://discourse.cmake.org/u/Sreepathi_Sarat)\
**Replies:** 1\
**Last updated:** [October 1, 2020, 8:07am UTC](https://discourse.cmake.org/t/findblas-with-fujitsu-libraries/1953 "2020-10-01T08:07:11Z")

</div>

Hello: I’m trying to build a scientific application that uses cmake on Fugaku, the Japanese supercomputer which has A64FX Arm processors. This machine has Fujitsu compilers and scientific libraries that provide BLAS an…

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

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