Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Getting started with CGAL on a mac OS X
- Date: Mon, 3 Jan 2011 16:59:56 +0100
- Organization: GeometryFactory
On Monday 03 January 2011 14:55:06 Dror Atariah wrote:
> 3rd attempt:
> Again, in the directory where the source is, I ran:
> cmake -DCGAL_DIR=/opt/local/lib/CGAL/CGALConfig.cmake .
> Here the output was again:
> CMake Error: The source directory
> "/Users/drorata/Documents/academics/programing/CGAL/examples and
> tests/testProject" does not appear to contain CMakeLists.txt.
> Specify --help for usage, or press the help button on the CMake GUI.
>
>
> 4th attempt:
> I ran the script cgal_create_cmake_script, producing the output:
> created CMakeLists.txt in
> /Users/drorata/Documents/academics/programing/CGAL/examples and
> tests/testProject ...
>
> Then I did one of the following:
> 1) Simply make. This returned
> make: *** No targets specified and no makefile found. Stop.
> 2) Then I ran either cmake . or cmake
> -DCGAL_DIR=/opt/local/lib/CGAL/CGALConfig.cmake ., In both cases the output
> was:
> CMake Error: Error required internal CMake variable not set, cmake may be
> not be built correctly.
> Missing variable is:
> CMAKE_and_COMPILER_ENV_VAR
> CMake Error: Error required internal CMake variable not set, cmake may be
> not be built correctly.
> Missing variable is:
> CMAKE_and_COMPILER
First, CGAL_DIR must be set to the *directory* where CGALConfig.cmake lies.
So
it is:
cmake -DCGAL_DIR=/opt/local/lib/CGAL .
Second, it seems that your version of CMake is confused by the spaces in the
name of your working directory. See the error log, it says: "Missing variable
is: CMAKE_and_COMPILER". That "and" in the middle is certainly here because
of
the " and " in your $PWD. Rename that directory to "examples_and_tests".
By curiosity, what is your CMake version?
cmake --version
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] Getting started with CGAL on a mac OS X, Dror Atariah, 01/03/2011
- Re: [cgal-discuss] Getting started with CGAL on a mac OS X, Sebastien Loriot (GeometryFactory), 01/03/2011
- Re: [cgal-discuss] Getting started with CGAL on a mac OS X, Dror Atariah, 01/03/2011
- Re: [cgal-discuss] Getting started with CGAL on a mac OS X, Sebastien Loriot (GeometryFactory), 01/03/2011
- Re: [cgal-discuss] Getting started with CGAL on a mac OS X, Dror Atariah, 01/03/2011
- Re: [cgal-discuss] Getting started with CGAL on a mac OS X, Sebastien Loriot (GeometryFactory), 01/03/2011
- Re: [cgal-discuss] Getting started with CGAL on a mac OS X, Dror Atariah, 01/03/2011
- Re: [cgal-discuss] Getting started with CGAL on a mac OS X, Laurent Rineau (GeometryFactory), 01/03/2011
- Re: [cgal-discuss] Getting started with CGAL on a mac OS X, Dror Atariah, 01/03/2011
- Re: [cgal-discuss] Getting started with CGAL on a mac OS X, Sebastien Loriot (GeometryFactory), 01/03/2011
Archive powered by MHonArc 2.6.16.