[CMake] Telling CMake to use zlibConfig.cmake instead of the Findzlib.cmake

Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA artur.kedzierski at navy.mil
Thu Oct 26 12:39:52 EDT 2006


	Sounds like CMAKE_MODULE_PATH suggested by Alan 
wouldn't do the trick.
	Will this change make it for CMake 2.4.4?
	Thank You.

--
Artur Kedzierski, JF33
Voice (951) 273-5069, DSN 933-5069, Fax (951) 273-5201

-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com] 
Sent: Thursday, October 26, 2006 8:42
To: Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Cc: CMake Mailing List
Subject: Re: [CMake] Telling CMake to use zlibConfig.cmake instead of the
Findzlib.cmake

Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:
> 	On Windows side, I built a zlib library and created
> a zlibConfig.cmake to go with it. The zlibConfig.cmake
> contains the zlib_DEFINITIONS, zlib_LIBRARIES, zlib_INCLUDE_DIRS
> so I don't have to worry 
> Now, in another project that uses zlib, FIND_PACKAGE(zlib)
> uses Findzlib.cmake that comes with CMake. How can
> I force it to use my zlibConfig.cmake instead?

There is no way to do this in cmake 2.4.3.  I've just committed some
changes to cvs cmake to allow you to write

FIND_PACKAGE(zlib NO_MODULE)

to skip the check for the find module and force the zlib_DIR-style lookup.

-Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4670 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20061026/bbb97509/smime.bin


More information about the CMake mailing list