[CMake] Default Path for INCLUDE()?

Alan W. Irwin irwin at beluga.phys.uvic.ca
Fri Apr 20 14:25:17 EDT 2007


On 2007-04-20 17:23-0000 dfeustel at mindspring.com wrote:

> I started experimenting with the INCLUDE()
> statement but have only been able to get
> it to find modules by supplying the full
> module path. Is there a way to specify a
> default path for INCLUDE so that only
> the module name is needed?
>
> These do not work for me on 64-bit OpenBSD 4.0:
>
> INCLUDE(FindJPEG)
> INCLUDE(FindJPEG.cmake)
>
> These work:
>
> INCLUDE(/usr/local/share/CMake/Modules/FindJPEG.cmake)
> INCLUDE(/usr/local/share/CMake/Modules/FindPNG.cmake)
> INCLUDE(/usr/local/share/CMake/Modules/FindX11.cmake)
> INCLUDE(/usr/local/share/CMake/Modules/FindQt3.cmake)
> INCLUDE(/usr/local/share/CMake/Modules/FindKDE3.cmake)
> INCLUDE(/usr/local/share/CMake/Modules/FindTCL.cmake)

The former style of INCLUDE commands (without path) work fine on Linux.  I am
wondering if there is some inconsistency between the
cmake version you are running (old system version?) and
the version installed in /usr/local/bin associated with the above module path.

What are the results of

which cmake

and

cmake --version

?

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 libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list