29,345 questions
-4
votes
0
answers
31
views
How do I include cgal v6.1.1 to my cmake/c++ project? [closed]
I tried to add CGAL v 6.1.1 to my my C++ project. I'm using cmake and (for all other libraries) CPM.
So I tried to do the same for CGAL. Meaning, I added:
CPMAddPackage(
NAME CGAL
...
-1
votes
1
answer
78
views
Problems compiling code with cmake and Boost / OpenCV
I'm having some problems compiling a simple piece of code. I'm just starting to use cmake (before I only used handcrafted Makefile) and compiling this piece of code in my PC works normally.
Code:
#...
0
votes
1
answer
48
views
GCC+CMake, static lib changes size_t footprint
While refactoring some legacy code I ran into some strange behaviour of CMake+GCC that I can not explain or correct.
This is what I have:
Debian Trixie with GCC 14.2.0 and CMake 3.31.6
A test project ...
0
votes
0
answers
41
views
Disassembly code of building with flag “-s” not the same as building without "-s" by cmake
The stripped binary was built with set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s"), and I generated both stripped binary and none stripped binary, and use ndk toolchain objdump to ...
1
vote
1
answer
42
views
What explains the strange behavior of arguments in CMake macros (as opposed to functions)?
Here is a piece of cmake code:
macro(my_macro p)
message("--my_macro--")
message("p is: ${p}")
if(p) # <========================= (1)
message("\"if(...
0
votes
0
answers
28
views
CMake remove build directory [duplicate]
I have a CMake project in which I'm creating a creating a build directory to generate CMake related files when cmake .. command is given from the build directory. After compilation, I execute cmake --...
0
votes
1
answer
27
views
Can I list the targets exported from a CMake config file, outside of a CMakeLists.txt which uses them?
I'm looking at some CMake package config file (or set of files), e.g. at /opt/foo/lib64/cmake/foo/FooConfig.cmake (and other files in that directory - -version.cmake and so on).
Now, I want to get a ...
4
votes
0
answers
150
views
Why executable can use module when respective library is linked only by excutable dependency not by executable itself
There's an implementation of the foo module that uses only the standard library:
module;
#include <iostream>
export module foo;
export void foo() {
std::cout << "foo" <&...
0
votes
0
answers
59
views
How do I tell CMake to emit the paths the package config module searched in
I've read this question:
How do I tell CMake to output the package search paths?
and can now more easily debug package searches. However, I'm searching for a certain package using pkg-config, e.g.:
...
0
votes
1
answer
50
views
Can I get ccmake (or cmake) to produce a command-line for configuring with my current choices?
I have used ccmake to configure a project with a combination of options - strings, toggles, etc.
Now, I want to save my choices so that, in the future or on another machine, I could just issue a ...
0
votes
0
answers
90
views
LNK2001 unresolved external symbol __vcrt_initialize when building python3 via vcpkg with custom ASan triplet (MSVC)
I am trying to build my project dependencies (gRPC and Boost) using vcpkg with AddressSanitizer (ASan) enabled on Windows. To achieve this, I created a custom triplet named x64-windows-asan.cmake.
...
0
votes
0
answers
56
views
Trying to insall CBLAS
I am trying to install CBLAS on Debian 13, and am, as far as I can see, following the instructions in the README file that came in the folder. When I do a 'make all', I get the following errors that I ...
0
votes
0
answers
42
views
BoostConfig.cmake not found in sysroot builded from buildroot
A small Linux distribution is being built using buildroot. A set of Boost libraries is added to it. The problem is that starting from cmake version 3.30, the configuration mode (find_package(Boost ...
-3
votes
1
answer
75
views
Is it possible to build bgfx with cmake? [closed]
I’m trying to build bgfx using CMake, but I’m not sure whether this is officially supported or what the correct workflow is.
From what I understand, bgfx primarily uses GENie to generate project files,...
0
votes
0
answers
193
views
How do I set up my C++/Cmake project in Visual Studio Code so that I can run and debug it on Windows?
I'm trying to put together a small utility for computing a tetrahedralization of a mesh (https://github.com/blackears/cyclops_tetrahedralizer). Since I want this to be open source, I thought it would ...