Top "Cmake" questions

CMake is a cross-platform, open-source build system generator.

Unable to specify the compiler with CMake

I have a problem with this CMakeLists.txt file: cmake_minimum_required(VERSION 2.6) SET(CMAKE_C_COMPILER C:/MinGW/bin/…

gcc cmake mingw
CMake is not able to find BOOST libraries

I tried everything like: Configure environment variable Make fresh build Re-install BOOST from source sudo apt-get install libboost-all-dev But still …

c++ bash boost cmake
How can I get CMake to find my alternative Boost installation?

I have installed the most recent version of Boost in /usr/local (with includes in /usr/local/include/boost and …

linux boost cmake build-automation wt
How to set the LDFLAGS in CMakeLists.txt?

I set the CFLAGS in CMake by CMAKE_C_FLAGS. Is something like this to set LDFLAGS?

gcc makefile cmake ld ldflags
How to build & install GLFW 3 and use it in a Linux project

GLFW3 Last night I was working late trying to build the GLFW 3 packages for Linux from source. This process took …

linux build installation cmake glfw
Running CMake on Windows

I am currently trying to get CMake to run on my Windows 7 (64-bit) system. I want to compile TagLib for …

windows-7 build-process mingw cmake taglib
CMake: How to build external projects and include their targets

I have a Project A that exports a static library as a target: install(TARGETS alib DESTINATION lib EXPORT project_…

cmake external-project
Copy file from source directory to binary directory using CMake

I'm trying to create a simple project on CLion. It uses CMake (I'm new here) to generate Makefiles to build …

cmake
OS specific instructions in CMAKE: How to?

I am a beginner to CMAKE. Below is a simple cmake file which works well in mingw environment windows. The …

c++ linux cmake mingw portability
How to retrieve a user environment variable in CMake (Windows)

I know how to retrieve a normal machine wide environment variable in CMAKE using $ENV{EnvironmentVariableName} but I can not …

windows environment-variables cmake