Re: [cmake-developers] Setting the INCLUDE_DIRECTORIES property before and after a target after 9106b564

2012-05-01 Thread Brad King
On 4/30/2012 8:37 PM, Raphael Kubo da Costa wrote: add_library(foo foo.c) set_directory_properties( PROPERTIES INCLUDE_DIRECTORIES ${SOME_DIRECTORY}) [snip] Is this change of behaviour intentional? CMake 2.8.8 introduced support for per-target include directories. Prior to that

Re: [cmake-developers] Setting the INCLUDE_DIRECTORIES property before and after a target after 9106b564

2012-05-01 Thread Raphael Kubo da Costa
Brad King brad.k...@kitware.com writes: CMake 2.8.8 introduced support for per-target include directories. Prior to that the directory-level INCLUDE_DIRECTORIES property was documented as read-only: $ cmake --help-property INCLUDE_DIRECTORIES cmake version 2.8.7 INCLUDE_DIRECTORIES

[cmake-developers] Setting the INCLUDE_DIRECTORIES property before and after a target after 9106b564

2012-04-30 Thread Raphael Kubo da Costa
While packaging CMake 2.8.8 for FreeBSD, an old port of lprof [1] started failing to build after some include headers were not found. The relevant CMakeLists does the following: add_library(foo foo.c) set_directory_properties( PROPERTIES INCLUDE_DIRECTORIES ${SOME_DIRECTORY}) foo.c