Thank You for the suggestion. Your interpretation is right but there is a catch to it. There is another module that gets in the way. The "private module designed for one project" is zlibConfig.cmake. CMake distribution comes with a module Findzlib.cmake. When another project calls FIND_PACKAGE(zlib), CMake searches for Findzlib.cmake first. Because it finds it, it doesn't search for zlibConfig.cmake and it doesn't give me an option to set zlib_DIR. Now, with Brad's new changes I will be able to tell FIND_PACKAGE(zlib NO_MODULE) to bypass the Findzlib.cmake and use 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 of the Findzlib.cmake > 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 copy the private module from the first project to the source tree of the second project and use CMAKE_MODULE_PATH (just like I assume you did for your first project) to access the private module. If there is some other interpretation of your question, then ignore my suggestion. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake