User Tools

Site Tools


cmake

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cmake [2012/03/29 14:30]
mantis [Pitfalls]
cmake [2012/04/10 14:09] (current)
mantis [Pitfalls]
Line 1: Line 1:
 +CMake is a cross-platform,​ open-source system for managing and automating the build process of software using a compiler-independent method. ​
 +
 +
 +===== Pitfalls =====
 +<code bash>
 +CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
 +Missing variable is:
 +CMAKE_Converter_COMPILER_ENV_VAR
 +   ​Called from: [1] /​bla/​project/​CMakeLists.txt
 +CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
 +Missing variable is:
 +CMAKE_Somethingsomething_COMPILER
 +</​code>​
 +
 +When writing a CMakeLists.txt file make sure to NOT put any spaces in your projectname. Everything after the first space is interpreted as language to e enabled for the project ([[http://​www.cmake.org/​cmake/​help/​cmake-2-8-docs.html#​command:​project|see doc]] for details).
 +
 +Right:
 +<code cmake>
 +PROJECT(WorldDomination)
 +</​code>​
 +
 +WRONG
 +<code cmake>
 +PROJECT(World Domination)
 +</​code>​
 +