Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
1 answer
34 views

Attempting to run this code: #include "modules/UserInputHandling.h" using namespace std; int main(int argc, char *argv[]) { int input = user_input_handling(argc,argv); } ...produces: C:\...
Thanos Maravel's user avatar
1 vote
0 answers
30 views

I have a function like this: function(append_one ones) list(APPEND one_more ${${ones}} "1") set(${ones} ${one_more} PARENT_SCOPE) endfunction() So that I can call it repeatedly: ...
aasoo's user avatar
  • 171
2 votes
0 answers
44 views

In WSL (Ubuntu 24.04), when using Conan to create a package that links pybind11/3.0.1, the resulting executable in the test_package fails to run. Even if the executable doesn't directly call any ...
AzusaYu's user avatar
  • 21
1 vote
1 answer
32 views

I am creating an C++ library which inside the library codebase includes are more freely defined than on an executable. For example: #include "base_task.h" Inside library in comparison to #...
ALEPHVOID's user avatar
Best practices
0 votes
1 replies
24 views

I would like to check whether Catch2 is installed, and if not then FetchContent it. CMake 4 has the OPTIONAL keyword to try find_package without throwing a warning. So, you can do something like this: ...
xealits's user avatar
  • 4,808
4 votes
1 answer
199 views

I'm trying to build a Python library from C code. I'm on macOS. When I only build the .so file and link it in Python like this, all the functions work as intended: import sys sys.path.append("...
Jean1000's user avatar
-1 votes
0 answers
67 views

I am trying to get sfml to link with cmake dynamically to my c++ project, and I would like to work cross platform with Windows and Linux. My (AI generated) CMakeLists.txt is not worth sharing becuause ...
14ohms's user avatar
  • 8
0 votes
1 answer
35 views

I'm new to C++, cmake and esp-idf coding. My code project is as per Expressif's structure. I found aC++ BLE library https://github.com/h2zero/esp-nimble-cpp/tree/master that I'd liketo include. Their ...
maresa's user avatar
  • 651
1 vote
0 answers
78 views

I want to create a skeleton for a project in which there are multiple cuda and cpp files. They will be compiled individually and then linked together to form a single executable. Currently I have the ...
ThErOmAnEmPiRe's user avatar
-2 votes
0 answers
50 views

I am trying to compare two algorithms in SCIP. To do this, I am following the steps in https://www.scipopt.org/scip/doc/html/TEST.php, but it says that SCIP automatically creates the scip/check/...
Diana Gutierrez's user avatar
3 votes
0 answers
101 views

I created a C++20 module (file module.ixx): export module M; void foo() {} export void bar() { foo(); } Then I created code that uses this module (main.cc): import M; int main() { bar(); } ...
d7d1cd's user avatar
  • 385
0 votes
1 answer
62 views

I have a React Native project that must support minSdkVersion 22. I changed the Android minSdkVersion to 22 in my app but the Gradle build fails complaining that a native ReactAndroid library (...
Gabriel Macedo's user avatar
0 votes
0 answers
30 views

I work on a very large project, And I would like to enforce the rule that every target_link_libraries should set the PRIVATE/PUBLIC/INTERFACE keywords. Checking manually is hopeless, thus I was ...
OznOg's user avatar
  • 4,810
-1 votes
0 answers
19 views

I have a build that needs to support multiple architectures and compiler versions, and involves finding a header that will be in a versioned directory. find_path(BACKTRACE_INCLUDE backtrace.h PATHS ...
OrangeDog's user avatar
  • 39.3k
0 votes
0 answers
54 views

I have a CMake based Windows library project that only links successfully with the MSVC link.exe due to some obscure third party library dependencies. However, I want to compile the project using the ...
PluginPenguin's user avatar
2 votes
0 answers
65 views

This question is not a duplicate of undefined reference to `vtable for MainWindow'. As I have mentioned in the following I know how to solve the compile error but my question is how to solve the ...
Mohammad Rahimi's user avatar
0 votes
1 answer
152 views

Environment React Native version: 0.82.1 react-native-pager-view version: 6.9.1 Platform: Only Android New Architecture: true Description Execution failed for task ':app:configureCMakeDebug[arm64-v8a]'...
a programer's user avatar
0 votes
0 answers
43 views

I'm trying to build the linphone-desktop application on Windows and encountering a contradictory CMake error during installation: CMake Error at external/linphone-sdk/external/soci/src/core/...
Yash R's user avatar
  • 247
2 votes
0 answers
68 views

I am generating code from STM32CubeMX (CMake projecct) and keeping it is separate folder. What CMake code so I now need in my App so that I can use generated code from the STM32CubeMX, and write my ...
Rovo's user avatar
  • 95
1 vote
1 answer
191 views

I'm building a Python package using scikit-build and Pybind11, but I'm having an issue where my package in site-packages is including one of my CMakeLists.txt. Here is my project structure: pybind11-...
Canyon's user avatar
  • 192
1 vote
1 answer
116 views

I am using Visual Studio 2022 and CMake to build my project. In a third_party directory under the project root, I extracted the OpenCV build from the OpenCV 4.12.0 windows downloader. In a CMakeLists....
Alan Chen's user avatar
0 votes
1 answer
39 views

Setup: modern(ish) CMake 3.31.6, main CMakeLists.txt below. As you can see, I'm generating a version.h at cmake time. This all works fine when I run cmake -S . -B /tmp/build from the project ...
Marcus Müller's user avatar
0 votes
0 answers
60 views

For the very first time I'm using Hunter. (base) raphy@raohy:~/MyPrj$ mkdir cmake (base) raphy@raohy:~/MyPrj$ wget https:// raw.githubusercontent.com/cpp-pm/gate/master/cmake/HunterGate.cmake -O cmake/...
Raphael10's user avatar
  • 3,246
2 votes
1 answer
84 views

I built my version of zlib (and by default it builds both static and dynamic) but seemingly it can't find the static one because it's being "zs.lib" and not in the preferred list so it can't ...
winapiadmin's user avatar
1 vote
0 answers
108 views

I'm trying to build Noteahead MIDI tracker (https://github.com/juzzlin/Noteahead) on Ubuntu 25.04 and getting a lot of CMake warnings like these: CMake Warning at /usr/lib/x86_64-linux-gnu/cmake/...
juzzlin's user avatar
  • 48.6k

1
2 3 4 5
588