[CMake] Relative path when referencing SWIG files?

Alan W. Irwin irwin at beluga.phys.uvic.ca
Sat Sep 15 09:52:09 EDT 2007


On 2007-09-15 22:54+1000 Nicholas Yue wrote:

>  How do I tell CMake to find [...] files in location that is not in the
> current directory[...]

Use absolute path starting with ${CMAKE_SOURCE_DIR} (see
http://www.cmake.org/Wiki/CMake_Useful_Variables for documentation
of that useful variable and many more).

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