Top "Cmake" questions

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

How do I add a linker or compile flag in a CMake file?

I am using the arm-linux-androideabi-g++ compiler. When I try to compile a simple "Hello, World!" program it compiles fine. When …

c++ cmake
Debug vs Release in CMake

In a GCC compiled project, How do I run CMake for each target type (debug/release)? How do I specify …

c++ c gcc cmake
How to properly add include directories with CMake

About a year ago I asked about header dependencies in CMake. I realized recently that the issue seemed to be …

c++ ubuntu cmake
Looking for a 'cmake clean' command to clear up CMake output

Just as make clean deletes all the files that a makefile has produced, I would like to do the same …

cmake
How do I activate C++ 11 in CMake?

When I try to run a CMake generated makefile to compile my program, I get the error that range based …

c++11 cmake
CMake error at CMakeLists.txt:30 (project): No CMAKE_C_COMPILER could be found

I'm trying make a Visual Studio solution with CMake to compile the latest version of aseprite and CMake keeps giving …

c++ visual-studio gcc cmake visual-studio-2015
CMake link to external library

How to get CMake to link an executable to an external shared library that is not build within the same …

cmake
Switching between GCC and Clang/LLVM using CMake

I have a number of projects built using CMake and I'd like to be able to easily switch between using …

cmake llvm clang
CMake output/build directory

I'm pretty new to CMake, and read a few tutorials on how to use it, and wrote some complicated 50 lines …

c++ build makefile cmake output
Define preprocessor macro through CMake?

How do I define a preprocessor variable through CMake? The equivalent code would be #define foo.

c++ cmake c-preprocessor