Questions tagged [cmake]
Questions specific for CMake build tool.
149 questions
0 votes
3 answers
135 views
Does CMake/make have the ability to make my Linux operating system unstable?
30 years ago, I've started C++. Mostly under DOS, Windows 3.1 and 95. I've wrote some for 10 years. Then Java replaced it at work, for about 20 years. Now C++ in coming back in the front of the scene. ...
0 votes
1 answer
291 views
CMake against Conda environment
I am trying to build some project (crocoddyl) against the conda environment using CMake. Build command is: cmake -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX ${CMAKE_ARGS} -S . -B build I have all the ...
3 votes
1 answer
2k views
fatal error: bsd/string.h: No such file or directory
According to the answer I need to include -lbsd to the gcc command. But I have no idea where I am supposed to insert it here. I'm using Ubuntu 24.04, Linux vivobook16-m1605xa-mb089 6.8.0-31-generic #...
4 votes
1 answer
2k views
How can I find the cmake variable that holds the path to a package
Let's say I used find_package(SDL REQUIRED) now I need to link to this library through target_link_libraries what would be the name of the variable to pass to target_link_libraries? In general is ...
0 votes
0 answers
27 views
Terminal does not use .bashrc variables, but recognized them [duplicate]
I have installed the latest Pop!_OS version on my new computer and wanted to set the following environment variables: CC=/usr/bin/clang CXX=/usr/bin/clang++ CMAKE_GENERATOR=Ninja Instead of typing ...
0 votes
1 answer
58 views
Error "undefined reference to" when building package seafile-client on manjaro
My seafile-client on Manjaro stopped working. So, I removed it and tried to reinstall it. However, when I tried to build the seafile-client from AUR, the installation always aborts. The installation ...
0 votes
0 answers
55 views
Cannot compile critic2 using libxc. cmake says different compiler
$ cmake -DCMAKE_BUILD_TYPE=Release -DLIBXC_DIR=/usr/lib/x86_64-linux-gnu/libxc.so .. -- A library with BLAS API found. -- Could NOT find NUMDIFF (missing: NUMDIFF_EXE) -- Found libxc (lib=/usr/local/...
1 vote
1 answer
351 views
building Debian package from Buster fails on Bookworm
I need to use older version of linphone on Debian 12. The version in bookworm is 4.4.10-3, and I actually need 3.12.0, which is available in Buster. On my bookworm build machine, I changed the sources,...