[CMake] Per-target include dirs that work in both 2.8.7 and 2.8.10.2?

Alexander Neundorf a.neundorf-work at gmx.net
Thu Feb 28 12:29:32 EST 2013


On Thursday 28 February 2013, Magnus Therning wrote:
> The other day I was putting together some cmake files and made them
> work on my system, where I have version 2.8.10.2 installed.  After
> giving my work to a colleague he reported that it didn't work.  It
> came down to him using version 2.8.7 (comes with his Linux distro) and
> my use of
> 
> ~~~~
> set_property( TARGET app PROPERTY INCLUDE_DIRECTORIES
>     ....
>     )
> ~~~~
> 
> In the folder in question there is source for several different
> targets, so I'd really like to use per-target include dirs (i.e.
> include_directories would not be a good match).  Is there a mechanism
> for (easily) getting per-target include dirs that work in both these
> versions?

Sorry, no, this is a new feature since cmake 2.8.8.

Alex


More information about the CMake mailing list