On 2007-05-30 15:14-0600 James Bigler wrote:
Is it possible to remove include directories? I can add them all I want, but
can I take one out:
INCLUDE_DIRECTORIES(
${MY_DIR}
)
# Add some libraries or other things
REMOVE_INCLUDE_DIRECTORIES(
${MY_DIR}
)
INCLUDE_DIRECTORIES(
${MY_OTHER_DIR}
)
# Add some other libraries
I'm trying to build two copies of the same library, but with different
included files.
I don't think INCLUDE_DIRECTORIES can be reversed.
However, instead of using INCLUDE_DIRECTORIES, you might want to try the
COMPILE_FLAGS property (using a -I option) of SET_SOURCE_FILES_PROPERTIES.
I assume a second call to SET_SOURCE_FILES_PROPERTIES with a different -I
option would supersede the first.
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
__________________________
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake