Updating CMake requirement to 2.8.12 RC 1

Alexander Neundorf neundorf at kde.org
Tue Aug 27 15:42:10 UTC 2013


On Tuesday 20 August 2013, Stephen Kelly wrote:
> Hello,
> 
> CMake 2.8.12 RC 1 was released a few hours ago:
> 
>  http://thread.gmane.org/gmane.comp.programming.tools.cmake.user/47443
> 
> Updating to that will allow us to get on the home straight with regard to
> our buildsystem files.
> 
> For example, we can easily set the INTERFACE_INCLUDE_DIRECTORIES of the
> targets we export. We can do that with a simple patch to
> INSTALL_TARGETS_DEFAULT_ARGS in ecm:
> 
>   diff --git a/kde-modules/KDEInstallDirs.cmake b/kde-
> modules/KDEInstallDirs.cmake
>  index c3d4d7c..87370b4 100644
>  --- a/kde-modules/KDEInstallDirs.cmake
>  +++ b/kde-modules/KDEInstallDirs.cmake
>  @@ -173,7 +173,8 @@ _set_fancy(DBUS_SYSTEM_SERVICES_INSTALL_DIR
> "${SHARE_INSTALL_PREFIX}/dbus-1/syst
>  # This can then also be used for packaging with cpack.
>  set(INSTALL_TARGETS_DEFAULT_ARGS  RUNTIME DESTINATION "${BIN_INSTALL_DIR}"
>                              LIBRARY DESTINATION "${LIB_INSTALL_DIR}"
>  -                           ARCHIVE DESTINATION "${LIB_INSTALL_DIR}")
>  +                           ARCHIVE DESTINATION "${LIB_INSTALL_DIR}"
>  +                           INCLUDES DESTINATION "${INCLUDE_INSTALL_DIR}")

${INCLUDE_INSTALL_DIR} can be both an absolute or a relative path.
Does this support both ?

Alex


More information about the Kde-frameworks-devel mailing list