Questions tagged [cmake]

0 votes
1 replies
how to remove “:” of cmake TARGET_OBJECTS, and use it in custom command
I want to use objs in COMMAND ld, but I cannot remove ";" in objs. How can I remove ";"? or have any other method to fix it? CMakeLists.txt S...
asked 4 months ago
1 votes
0 replies
Identify why CMake is re-configured every time a source file is changed
I have a big project and for some reason CMake configure is being run every time a source file is changed. Is there a simple way to identify why...
asked 4 months ago
0 votes
2 replies
static library convert to a shared lib symbols are hidden?
I am trying to link v8's static library to a shared library using the following cmake command add_library(v8jni SHARED ${THIRDPARTY_LIB_PATH}/sh...
asked 4 months ago
3 votes
0 replies
CMake & Visual Studio project setup
I'm writing my own minecraft launcher in c++ with Visual Studio 2019 IDE. I want it to be a cross-platform project. I decided to use CMake for th...
asked 4 months ago
2 votes
1 replies
Boost_LIBRARIES not defined
I am trying to compile FreeLing, that uses CMake to detect Boost. This is the code responsible for it: find_package(Boost COMPONENTS regex fil...
asked 4 months ago
0 votes
0 replies
libarchive 3.3.3 android build
Has anyone tried building libarchive for android? Previously there used to be a android.toolchain.cmake for libarchive. But the latest one doesnp...
asked 4 months ago
0 votes
1 replies
You have called ADD_LIBRARY for library pugixml without any source files
I am working on quickrank: https://github.com/hpclab/quickrank. when I compile it I get error cmake .. -DCMAKE_CXX_COMPLIER=/usr/bin/g++ -DCMAK...
asked 4 months ago
0 votes
0 replies
cmake variable for libatomic
I'm currently compiling a project with cmake that relies on libatomic. My build environment has multiple versions of gnu-gcc and gnu-g++. cmake d...
asked 4 months ago
0 votes
0 replies
CMake set FILEPATH with default filer chooser folder
I'm doing the following: set(CPPFILE "" CACHE FILEPATH "Path to cpp file") However, the file chooser dialog box opens to C:\Program Files\CMak...
asked 4 months ago
0 votes
0 replies
GYP: How to use a compiled file (.o) as a source in another target?
My target array looks like this (simplified): "targets": [ { "target_name": "mapnik_vector_tile_impl", 'dependencies': [ 'vector_tile' ],...
asked 4 months ago
0 votes
0 replies
Linking an external library with cmake
When I am linking to an external library, I get a lot of "undefined reference", despite those functions are in the external library. $ g++.exe -...
asked 4 months ago
0 votes
0 replies
Add libUCW in project with cmake
I am current using a c library named libUCW I try to build my project with CMAKE and add curl,cJSON,libucw as dependencies, both curl and cJSON...
asked 4 months ago
0 votes
0 replies
Package “boost_atomic” NOT FOUND when running CMake
I'm trying to install RStudio Desktop using these instructions. This requires boost >= v1.69. I'm running Ubuntu 18.10 in a Windows subsystem...
1 votes
1 replies
cmake compiling problem for c++ application with libconfig library
I am trying to run simple c++ application on Ubuntu 18.04 with using libconfig 1.7.2 library which was installed with vcpkg version 2018.11.23-un...
asked 4 months ago
2 votes
0 replies
Cross platform Poco libraries linking issue
I compiled Poco in Ubuntu amd platform with cmake using special arm toolchain file and build script: #!/bin/sh cd cmake_build cmake \ -G "U...
asked 4 months ago
2 votes
1 replies
In CMake how do turn a multi line output of a command into a list?
I want to do do something like this execute_process( COMMAND bash -c "git --git-dir ${CMAKE_SOURCE_DIR}/.git ls-files" OUTPUT_VARIABLE TRACK...
asked 4 months ago
0 votes
1 replies
When I build and compile my c++ project it is not finding the correct c++ library via my cmake files, what am I doing wrong?
When I compile my project for the following legacy library: https://github.com/reedhedges/AriaCoda I get the error that Aria.h is not found. My...
asked 4 months ago
0 votes
0 replies
How to set path and build a package/library
I am trying to import a package in google colaboratory. The installation instruction of that package in Linux is: git clone https://github.com/...
0 votes
0 replies
How to update libstdc++ ( version `GLIBCXX_3.4.20' not found) with no root?
I updated my gcc to 4.9+ while there's no GLIBCXX_3.4.20 in /lib64/libstdc++.so.6, and it encounters error: version GLIBCXX_3.4.20 not found. In...
asked 4 months ago
2 votes
2 replies
How to change C++14 standard requirement from POCO based project to C++17
I am building a project using Cmake and POCO, I am using vcpkg to manage my dependencies in ubuntu so at first this is how my cmake file looks li...
asked 4 months ago
-3 votes
0 replies
How to put bullet in my ogre project with the right libraries?
I am trying to integrate bullet(3D Physics simulation) into my ogre(3D rendering) project, but i can't even get to programming for it yet because...
asked 4 months ago
0 votes
1 replies
Can “make” tell you the root cause(s) triggering build?
Sometimes very small changes cause big rebuilds, but it's not always obvious why. So, is it possible to get make to tell you what it believes cha...
asked 4 months ago
0 votes
1 replies
fatal error: SFML/System.hpp' file not found
I am trying to work with SMFL, CMAKE & VSCode. Cmake cannot link these SFML files. I install SFML & CMake using Homebrew. I have tried...
asked 4 months ago
0 votes
1 replies
CMake: Linking shared lib with other libs with relative path for distribution
Context: I am developing a shared library to... well... share with other user. My library depends on a lot of other libraries which forces me to...
asked 4 months ago
0 votes
0 replies
build simple project using cmake
Since I have never used CMake before and I currently have a relatively easy project, I would like to get started using it (currently using only V...
asked 4 months ago