[CMake] CMAKE_MODULE_PATH on windows.
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Mon May 5 18:51:09 EDT 2008
On 2008-05-05 15:36-0700 Phil Pellouchoud wrote:
> I cannot get this to work. No matter how I set it, it never seems to be
> able to use it.
>
>
>
> PROJECT(x)
>
>
>
> SET(CMAKE_MODULE_PATH path)
>
>
>
> INCLUDE ( test.cmake )
^^^^^^^^^
You are using the "file" signature for INCLUDE here which ignores
CMAKE_MODULE_PATH. Use the module form, instead, e.g.,
INCLUDE(test)
which according to the documentation...
"If a module is specified instead of a file, the file with name
<modulename>.cmake is searched in the CMAKE_MODULE_PATH."
i.e., it will look for path/test.cmake
If that doesn't work, please let us know the exact "path" you have
specified. I think for INCLUDE it must be in internal CMake form (i.e., in
Unix form), but I am not sure since I only have Unix experience with
CMake.
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