[CMake] FindZLIB.cmake
Dizzy
dizzy at roedu.net
Tue Oct 2 03:38:54 EDT 2007
On Tuesday 02 October 2007 01:28:12 Hendrik Sattler wrote:
> Am Montag 01 Oktober 2007 schrieb Kedzierski, Artur CIV NAVSURFWARCENDIV
>
> CORONA:
> > Could somebody modify FindZLIB.cmake to search
> > "/Program Files/zlib" directory for zlib include and lib directories?
> > This is the default location that CPack generated NSIS installer uses.
> >
> > FIND_PATH(ZLIB_INCLUDE_DIR zlib.h
> > /usr/local/include
> > /usr/include
> > "/Program Files/zlib/include"
> > )
>
> Or better
> FIND_PATH ( ZLIB_INCLUDE_DIR
> NAMES zlib.h
> PATHS /usr/local /usr ENV ProgramFiles
> PATH_SUFFIXES include zlib/include
> )
>
> or you might simply set the environment variables as shown in the
> respective command help.
> Hard coded paths are the root of all evil.
You might also consider my modification to it that looks up registry values as
installed by GnuWin32 ZLIB package: http://www.cmake.org/Bug/view.php?id=5588
--
Mihai RUSU Email: dizzy at roedu.net
"Linux is obsolete" -- AST
More information about the CMake
mailing list