aboutsummaryrefslogtreecommitdiff
path: root/modules/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2010-08-25 20:06:48 +0000
committerAlexander Neundorf <neundorf@kde.org>2010-08-25 20:06:48 +0000
commit13878c79535651b151b80526f6052904c4189023 (patch)
tree37c0761e791bb2c571a6e4e76766cba6fc84dfa1 /modules/CMakeLists.txt
parent4051cfa096f4fa11e6cea0950970e741140cdd0d (diff)
downloadextra-cmake-modules-13878c79535651b151b80526f6052904c4189023.tar.gz
extra-cmake-modules-13878c79535651b151b80526f6052904c4189023.tar.bz2
-sync FindPackageHandleStandardArgs.cmake with the version from cmake master, in order to stay compatible with future cmake releases.
Our FindPackageHandleStandardArgs.cmake had automatic check for the version number by guessing the name of the variable which contains the version number. This didn't make it into cmake, but instead an extendible version where you can specify what you want. FindEigen2.cmake is already converted, it looks like this: find_package_handle_standard_args(Eigen2 REQUIRED_VARS EIGEN2_INCLUDE_DIR VERSION_VAR EIGEN2_VERSION) Additionally a FAIL_MESSAGE can be specified. VERSION_VAR is optional. This must be merged in the 4.5. branch if we don't find any issues. Alex CCMAIL: kde-buildsystem@kde.org svn path=/trunk/KDE/kdelibs/; revision=1167973
Diffstat (limited to 'modules/CMakeLists.txt')
-rw-r--r--modules/CMakeLists.txt18
1 files changed, 8 insertions, 10 deletions
diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt
index 637f8cab..03e4d15d 100644
--- a/modules/CMakeLists.txt
+++ b/modules/CMakeLists.txt
@@ -10,13 +10,10 @@ set(cmakeFilesDontInstall
FindPolkitQt.cmake
FindPolkitQt-1.cmake)
-# remove once we depend on a newer cmake version:
-# FindPackageHandleStandardArgs (2.8.2)
-
# Explicitely list all files which will be installed.
# We don't use a GLOB anymore so we can have also cmake files here
# which are used inside kdelibs, but which don't have to be installed (and
-# so become part of the public interface of kdelibs which has to be kept
+# so become part of the public interface of kdelibs which has to be kept
# compatible).
set(cmakeFiles CheckCXXSourceCompiles.cmake
CheckCXXSourceRuns.cmake
@@ -101,6 +98,7 @@ set(cmakeFiles CheckCXXSourceCompiles.cmake
Qt4Macros.cmake
Qt4ConfigDependentSettings.cmake
FindPackageHandleStandardArgs.cmake
+ CMakeParseArguments.cmake # used by FindPackageHandleStandardArgs.cmake, will be in CMake 2.8.3
FindPythonLibrary.cmake
FindQCA2.cmake
FindQImageBlitz.cmake
@@ -150,11 +148,11 @@ set(cmakeFiles CheckCXXSourceCompiles.cmake
create_exe_symlink.cmake
kde4_exec_via_sh.cmake
kde4uic.cmake
- cmake-modules-styleguide.txt
- kde4init_dummy.cpp.in
- kde4init_win32lib_dummy.cpp.in
- kde4_cmake_uninstall.cmake.in
- kde4automoc.files.in
+ cmake-modules-styleguide.txt
+ kde4init_dummy.cpp.in
+ kde4init_win32lib_dummy.cpp.in
+ kde4_cmake_uninstall.cmake.in
+ kde4automoc.files.in
BasicFindPackageVersion.cmake.in
FindLibPython.py
FindPyKDE4.py
@@ -170,7 +168,7 @@ endif (KDE4_ENABLE_UAC_MANIFEST)
install(FILES ${cmakeFiles}
DESTINATION ${module_install_dir} )
-
+
# the files listed here will be removed by remove_obsoleted_cmake_files.cmake, Alex
#set(FILES_TO_REMOVE
#)