Questions tagged [cmake]
CMake is a cross-platform, open-source build system generator. It generates files for build systems like native makefiles, ninja-build and project files for several integrated development environments.
cmake
28,921
questions
0
votes
0
answers
7
views
CMake Cannot Find SDL2TTF package
I installed SDL2ttf for a project and SDL2_image and it seems that cmake cannot find the package only of SDL2ttf although i applied the same logic. Specifically i downloaded the libraries, i created a ...
12
votes
4
answers
21k
views
Get target filename without extension with CMake
How can I get the basename of a target library with CMake?
I'm creating a library with the CMake variable name ${lib} as in
set(lib lib)
add_library(${lib} ...
I need the basename of the generated ...
0
votes
1
answer
114
views
Required baseline optimization is not supported: VFPV3
I am currently attempting to download OpenCv onto my Raspberry Pi 4b, and I am following this tutorial text and when I attempt to download the last set of packages using Cmake I run into a couple ...
0
votes
0
answers
12
views
Generator Xcode toolset specification field buildsystem=1 is not allowed with Xcode 15.0.1
./make-project.sh
-- cmake version 3.28.2
CMake Deprecation Warning at CMakeLists.txt:10 (cmake_policy):
The OLD behavior for policy CMP0025 will be removed from a future version
of CMake.
...
0
votes
0
answers
13
views
CMake FetchContent: How to not use the extracted cmake file now that FetchContent_Populate is deprecated?
After upgrading to CMake 3.30, this fine wrapper function …
function(fetch_and_extract_archive dst_name url checksum)
cmake_parse_arguments(ARG "POPULATE_ONLY" "" "" &...
0
votes
2
answers
525
views
argument unused during compilation: '-mcpu=cortex-m7' when using arm-none-eabi-g++ with clang-tidy
I am using CMake to run clang-tidy while compiling my embedded target.
if(CLANG_TIDY)
set(CMAKE_CXX_CLANG_TIDY "clang-tidy")
endif()
CMake sets the correct driver mode automatically:
--...
0
votes
1
answer
59
views
Unknown type name 'ImVec2'
I am trying to build the hello_imgui_template with Cmake, but I am unable to proceed without it giving me hello_imgui/hello_imgui.h file not found.
Just to try it out I manually inserted the absolute ...
2
votes
1
answer
303
views
+250
Why can't CLion see header files, using the WSL2 toolchain?
My setup:
Windows 10 Pro 22H2 (19045.2965)
CLion 2020.1.3 (JetBrains)
WSL2 with Ubuntu 22.04.2 LTS
gcc 11.3.0
cmake 3.22.1
gdb 12.1
gmake 4.3
CMakeLists.txt
cmake_minimum_required(VERSION 3.22)...
0
votes
0
answers
8
views
Set compiler flag when installing with vcpkg
I am trying to install pugixml using vcpkg and linking to it using cmake. I want to use it on windows and therefor want to use wchar_t instead of char. I know that pugixml has a compiler flag for this ...
-1
votes
0
answers
40
views
Getting error, No Uuid API found while building cmake for qpid c++ messaging API
I am trying to build QPid Messageing API C++ from here.
I downloaded all the required dependencies including Boost. However, I'm getting 'No Uuid API found' error. uuid/uuid.h is present in usr/...
0
votes
0
answers
10
views
Including static .a Libraries in CMake Project [duplicate]
I am working on a project for STM32 in VSCode and I need to include libraries with the .a extension to be able to call their functions. I need help with configuring CMake. My current CMake setup looks ...
0
votes
1
answer
29
views
Doesn't find files when building project
I have linked the SFML and TGUI libraries in my project. I also included these libraries in another CMakeLists in this project. When I start building the project, I get a message that the files from ...
0
votes
2
answers
94
views
Build CPython failed on GitHub action.(Output tons of error messages)
I want to build a conda package for nogil (A proof-of-concept implementation of CPython that supports multithreading without the global interpreter lock (GIL).)
Here is my github action: https://...
0
votes
1
answer
59
views
unresolved external symbol error When building Expat with CMake on windows [duplicate]
My C++ program uses expat as a dependency. I got errors when I built my program on Github windows-2022 runners. It runs well on Linux/maxOS runners.
I would like to use expat as a static library in my ...
0
votes
0
answers
27
views
Finding the build directory for cmake --install from CMakePresets.json
I'm developing a C++ bases software for Linux using CMake 3.29.3.
In my CMake based project, I've the following CMakePresets.json:
{
"version": 6,
"cmakeMinimumRequired": {
...