[CMake] [cmake-developers] CMake 2.8.12-rc1 Released

Alexander Neundorf a.neundorf-work at gmx.net
Wed Aug 21 17:21:05 EDT 2013


On Tuesday 20 August 2013, Robert Maynard wrote:
>  Introduced CMake Policy 21:
>   It is now an error to use relative paths to include_directories.

Why is this necessary ?
The documentation for this policy says:
"The base path for such relative entries is not well defined."

I don't understand this.
Why isn't it simply interpreted as relative to ${CMAKE_CURRENT_SOURCE_DIR} in 
the CMakeLists.txt where the property is set ?
include_directories(), link_directories() and I think more or less all other 
commands interpret relative paths as relative to ${CMAKE_CURRENT_SOURCE_DIR}.

Alex


More information about the CMake mailing list