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

2013-03-02 Thread Magnus Therning
On Thu, Feb 28, 2013 at 03:19:48PM -0500, Jean-Christophe Fillion-Robin wrote: > Hi Magnus, > > As already mentioned, the target property INCLUDE_DIRECTORIES has been > introduced in CMake 2.8.8. The following page is useful to find out such > things. See > http://www.cmake.org/Wiki/CMake_Version_

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

2013-03-02 Thread Magnus Therning
On Thu, Feb 28, 2013 at 12:45:47PM -0500, Bill Hoffman wrote: > On 2/28/2013 12:29 PM, Alexander Neundorf wrote: > >Sorry, no, this is a new feature since cmake 2.8.8. > > > >Alex > Only way to do it before was to make sure each target is in its own > directory and then manipulate the includes from

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

2013-02-28 Thread Jean-Christophe Fillion-Robin
Hi Magnus, As already mentioned, the target property INCLUDE_DIRECTORIES has been introduced in CMake 2.8.8. The following page is useful to find out such things. See http://www.cmake.org/Wiki/CMake_Version_Compatibility_Matrix/Properties#Properties_on_Targets To get around it, as mentioned by Bi

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

2013-02-28 Thread Bill Hoffman
On 2/28/2013 12:29 PM, Alexander Neundorf wrote: Sorry, no, this is a new feature since cmake 2.8.8. Alex Only way to do it before was to make sure each target is in its own directory and then manipulate the includes from there. -Bill -- Powered by www.kitware.com Visit other Kitware open-s

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

2013-02-28 Thread Alexander Neundorf
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

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

2013-02-28 Thread Magnus Therning
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_proper