[CMake] Support for TARGET_INCLUDE_DIRECTORIES(), TARGET_LINK_DIRECTORIES and TARGET_ADD_DEFINITIONS()

Stephane Rouleau (Consultant) stephane.rouleau at autodesk.com
Fri Jun 1 14:50:25 EDT 2007


Hi.
 
It looks like INCLUDE_DIRECTORIES(), LINK_DIRECTORIES() and
ADD_DEFINITIONS() are defined globally, which in our setup is not quite
we were aiming for.  
 
ADD_DEFINITIONS() can be replaced I suppose by setting the compile flags
directly on the target, since -D is pretty 'portable'.  But are -L and
-I also portable in the same way, and setting them on the LINK_FLAGS /
COMPILER_FLAGS going to behave appropriately?
 
If we were to implement those three commands, would there be any
interest in merging this in the trunk?  We would hate to have to
maintain our own parallel copy of cmake on all the platforms we need to
support....
 
Thanks,
 
Stephane Rouleau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070601/3846e3af/attachment.html


More information about the CMake mailing list