Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Configuration of CMake to produce only one particular Demo (I don't care about any others)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Configuration of CMake to produce only one particular Demo (I don't care about any others)


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Configuration of CMake to produce only one particular Demo (I don't care about any others)
  • Date: Wed, 14 Oct 2009 15:49:43 +0200
  • Organization: GeometryFactory

On Wednesday 14 October 2009 04:20:09 A S wrote:
> I'm sorry, I'm a noob and have two questions. I seem to have run into the
> notorious "Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)"
> configuration alert. I'm confused as to how to go about setting up ZLIB
> so that CMake sees it.
> What are ZLIB_LIBRARY and ZLIB_INCLUDE_DIR? Are they environment
> variables? (I'm running Visual C++ 2008 Express edition on Windows 7.)
> Are they constants inside a CMake file, or inside a CGAL file?
> Laurent Rineau,has generously answered a prior poster that...

They are CMake variables. You can find them in the file CMakeCache.txt in the
directly were you are compiling CGAL or your program (that directory is named
CMAKE_BINARY_DIR, in CMake terms),or you can modify them in the graphical
user
interface of CMake: cmake-gui.exe (or cmakesetup.exe, that is the older GUI
of
CMake).

You need to modify those variables, so that CMake can know were you have
installed ZLIB.

In your case, you must have

ZLIB_INCLUDE_DIR = "C:\ZLIB\include"
ZLIB_LIBRARY = "C:\ZLIB\lib\zlib.lib"

(Verify that the file "C:\ZLIB\lib\zlib.lib" does exist.)

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page