MantisBT - CMake
View Issue Details
0010949CMakeDocumentationpublic2010-07-07 17:452016-06-10 14:31
Kurt Schwehr 
Bill Hoffman 
normalminoralways
closedmoved 
CMake-2-8 
 
0010949: Tutorial has two fatal errors on Mac and Linux
Using cmake 2.8.2 from fink on Mac OSX 10.6. Also tried on Ubuntu 10.4.

As a new user, I've tried to work through the tutorial on the web page and hit a couple things that didn't work and a bunch of things that should be tweaked for better style. This report refers to this web page:

http://www.cmake.org/cmake/help/cmake_tutorial.html [^]

CMake is looking pretty good from the beginners point of view.

-kurt


Things that break:

* CMakeLists should be CMakeLists.txt

* cmake_minumum_required (2.6) fails. The VERSION arg is missing. Should now be:

cmake_minimum_required (VERSION 2.8)

* atof missing header. On ubuntu and macosx, there needs to have stdlib:

#include <cstdlib>


Things that could be better:

* The headers are in C, not C++ style. The headers should look like this:

#include <cstdlib>
#include <cstdio>
#include <cmath>

* Would be good to have a sample command line for building. e.g.

cmake -G "Unix Makefiles" .
make VERBOSE=1

No tags attached.
Issue History
2010-07-07 17:45Kurt SchwehrNew Issue
2010-07-13 09:19Bill HoffmanNote Added: 0021379
2010-07-13 09:19Bill HoffmanStatusnew => assigned
2010-07-13 09:19Bill HoffmanAssigned To => Bill Hoffman
2016-06-10 14:28Kitware RobotNote Added: 0041724
2016-06-10 14:28Kitware RobotStatusassigned => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0021379)
Bill Hoffman   
2010-07-13 09:19   
The tutorial code in Testing does not have issues.
(0041724)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.