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

2006-10-27 Thread Doug Henry
I'm trying to follow this thread because it seems like it might be important to me, but I'm not sure I understand the root problem. The problem isn't finding zlib? The problem isn't using custom modules? I guess there is something special about the custom zlib module that cmake's module doesn't

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

2006-10-27 Thread Brad King
Alan W. Irwin wrote: I think the real problem here is the documentation of FIND_PACKAGE needs updating. [snip] The meaning of the phrase another project built by CMake is not clear. I cannot believe that is some arbitrary project somewhere on the net. Even if it is is another project built

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

2006-10-27 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
around it. --Artur Kedzierski From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Doug HenrySent: Friday, October 27, 2006 5:34To: Alan W. IrwinCc: Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA; Brad King; CMake Mailing ListSubject: Re: [CMake] Telling CMake to use zlibConfig.cmake

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

2006-10-27 Thread Alan W. Irwin
On 2006-10-27 08:50-0700 Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: This is my understanding. Everybody, please correct me if I am wrong. There are two types of modules: nameConfig.cmake. and Findname.cmake A package (eg. library) provides nameConfig.cmake. The

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

2006-10-27 Thread Brad King
Alan W. Irwin wrote: A module that gives header and library information for a package does sound most useful, and, in fact, we could use that kind of module for the PLplot project (especially if the module is automatically generated from the install information that CMake already has access

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

2006-10-26 Thread Doug Henry
I have not seen a repo for cmake files like that, but I have a feeling there are cmake build files for zlib, png, etc in the VTK source (vtk.org).On 10/25/06, Luigi Calori [EMAIL PROTECTED] wrote: Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Hi, On Windows side, I built a zlib library and

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

2006-10-26 Thread Bill Hoffman
Doug Henry wrote: I have not seen a repo for cmake files like that, but I have a feeling there are cmake build files for zlib, png, etc in the VTK source (vtk.org http://vtk.org). Another thing for people to do, is to request that the maintainers of zlib, png, etc, add CMakeLists.txt files to

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

2006-10-26 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Sounds like CMAKE_MODULE_PATH suggested by Alan wouldn't do the trick. Will this change make it for CMake 2.4.4? I'm not sure about 2.4.4. You can check the documentation of the FIND_PACKAGE command when it comes out. It will

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

2006-10-26 Thread Alan W. Irwin
Sounds like CMAKE_MODULE_PATH suggested by Alan wouldn't do the trick. An obvious interpretation of your question (which I have just re-read) is how could I use a private module designed for one project in another project? If that interpretation of your question is correct, then simply

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

2006-10-26 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
zlibConfig.cmake. -- Artur Kedzierski -Original Message- From: Alan W. Irwin [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2006 13:52 To: Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA Cc: Brad King; CMake Mailing List Subject: RE: [CMake] Telling CMake to use zlibConfig.cmake instead

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

2006-10-25 Thread Alan W. Irwin
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? SET CMAKE_MODULE_PATH. That variable is documented in http://www.cmake.org/HTML/Documentation.html and also