changes how include directories are handled

Alexander Neundorf neundorf at kde.org
Thu May 11 19:00:49 BST 2006


Hi,

since the latest kdelibs4_snapshot requires cmake 2.4.1, now the include 
directories can be handled much simpler:

1) CMAKE_CURRENT_SOURCE_DIR and CMAKE_CURRENT_BINARY_DIR are now added 
automatically to the include path for every target, so they don't have to be 
added explicitely in every CMakeLists.txt.
(this is done by setting the cmake option CMAKE_INCLUDE_CURRENT_DIR to TRUE in 
kdelibs/cmake/modules/KDE4Defaults.cmake)

2) KDE4_INCLUDES is now added to the include path in the toplevel 
CMakeLists.txt in every module. This is possible since now cmake orders the 
include dirs in such a way that include dirs in the source or build tree are 
always coming before all other include dirs. (this is done by setting 
CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE to TRUE in 
kdelibs/cmake/modules/KDE4Defaults.cmake) 

I'm in the process of commiting these changes to svn, so if there are 
problems, check that the include dirs are correctly.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net




More information about the kde-core-devel mailing list