extra-cmake-modules: remove ECMPrintVariables.cmake
Alexander Neundorf
neundorf at kde.org
Thu Oct 24 20:29:51 UTC 2013
Hi,
e-c-m has a macro ecm_print_variables()
From the documentation:
# Example:
# ecm_print_variables(CMAKE_C_COMPILER
# CMAKE_MAJOR_VERSION THIS_ONE_DOES_NOT_EXIST)
# Gives:
# -- CMAKE_C_COMPILER="/usr/bin/gcc" ; CMAKE_MAJOR_VERSION="2" ;
# THIS_ONE_DOES_NOT_EXIST=""
Now that kde frameworks depends on cmake 2.8.12, this could be removed, since
cmake now has something similar.
include(CMakePrintHelpers)
cmake_print_variables(CMAKE_C_COMPILER
CMAKE_MAJOR_VERSION THIS_ONE_DOES_NOT_EXIST)
and additionally for printing properties (again from the docs):
cmake_print_properties(TARGETS foo bar
PROPERTIES LOCATION INTERFACE_INCLUDE_DIRS)
# This will print the LOCATION and INTERFACE_INCLUDE_DIRS properties for both
# targets foo and bar.
These two functions are useful mostly for debugging, and make this more
convenient.
If somebody feels like it, I think it would be a good idea to remove
ECMPrintVariables.cmake, now that there is a replacement in cmake.
Alex
More information about the Kde-frameworks-devel
mailing list