View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010949CMakeDocumentationpublic2010-07-07 17:452016-06-10 14:31
ReporterKurt Schwehr 
Assigned ToBill Hoffman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0010949: Tutorial has two fatal errors on Mac and Linux
DescriptionUsing 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

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0021379)
Bill Hoffman (manager)
2010-07-13 09:19

The tutorial code in Testing does not have issues.
(0041724)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2010-07-07 17:45 Kurt Schwehr New Issue
2010-07-13 09:19 Bill Hoffman Note Added: 0021379
2010-07-13 09:19 Bill Hoffman Status new => assigned
2010-07-13 09:19 Bill Hoffman Assigned To => Bill Hoffman
2016-06-10 14:28 Kitware Robot Note Added: 0041724
2016-06-10 14:28 Kitware Robot Status assigned => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team