I have a scenario that I think is very similar to this one: CMake add_custom_command/_target in different directories for cross-compilation, however the solutio
This is happening on a Linux system. Anaconda comes with several C libraries, like libz, or libgomp. I have most of these libraries also installed globally on m
According to the CMake documentation https://cmake.org/cmake/help/v3.3/command/set.html One can do set(ENV{<variable>} <value>) but this gives the
Idk how to make it automaticly - the only option is to specify where the file is - not to generate it, but I don't wan't to write it by my own, because there ar
I have C++ code which uses FFTW 3.3.4. Ubuntu 16.04, cmake version 3.7.2 $ locate *fftw*.so /usr/lib/libsfftw.so /usr/lib/libsfftw_mpi.so /usr/lib/libsfftw_th
Flutter doctor did not show any issues. What could be wrong? executing: flutter run -d linux Shows the following: CMake Error at /snap/flutter/81/usr/share/cmak
I am looking through the source-code for ZeroMQ, which I want to build from source. Inside I found platform.hpp.in, which contains: ... #cmakedefine ZMQ_HAVE_
Is there any use case in which target_link_libraries(my-lib x y z) add_dependencies(my-lib x) # this is not just a waste of bytes? If so, can someone explai
My goal is to download the Boost repository if it isn't found and then build it the default way, i.e. using boostrap and b2 tools. I know, I can download it l
I am new to CMake, and I want to set _ITERATOR_DEBUG_LEVEL to 0 for Release build, and 2 for Debug build, to fix issues when trying to compile a project that de
The source for the CMake (https://github.com/Kitware/CMake/blob/master/Modules/FindThreads.cmake) claims the following about the "FindThreads" functionality:
I was installing the library Eigen on Ubuntu. I followed the instructions by creating a "build directory" alongside the downloaded source directory. That is, I
Make Error at CMakeLists.txt:12 (find_package): By not providing "FindPCL.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configu
I don't quite understand how to integrate libraries by FetchContent if they were not found by find_package. Currently, I have the following code: # OpenSSL depe
I would like to build my project with OpenSSL from sources. I am using a modern CMake with FetchContent feature. So far, I have no trouble using FetchContent wi
I code in C/C++ and use a (GNU) Makefile to compile the code. I can do the same with CMake and get a Makefile. However, what is the difference between using a M
Getting this error: sudo: unable to resolve host coderw@ll -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) CMake Error at /usr/s
on my machine debian 9 (stretch), i have installed R4.2.0 from source. i have problem to install nloptr 2.0.0 using syntax: if (!require("nloptr", quietly = TRU
I would like to build and install my project using CLion, however it must be installed globally (i.e. to /usr/local/lib/cmake/). In bash I build with make -j$
I have tried this on multiple platforms, experiencing the same issue every time. I successfully build and run my C++ OpenFrameworks application using QtCreator