diff options
author | Klaus Kaempf <kkaempf@suse.de> | 2008-12-03 12:23:44 +0000 |
---|---|---|
committer | Klaus Kaempf <kkaempf@suse.de> | 2008-12-03 12:23:44 +0000 |
commit | 20138417f3ada58e219e17f86f8031f6509447ca (patch) | |
tree | ee9d1dd80a74820ab174220bcbf86876ec3e8948 /cmake | |
parent | 15283a6b92b5d31286528a0e51bd63b5c3cf0498 (diff) | |
download | libsolv-20138417f3ada58e219e17f86f8031f6509447ca.tar.gz libsolv-20138417f3ada58e219e17f86f8031f6509447ca.tar.bz2 libsolv-20138417f3ada58e219e17f86f8031f6509447ca.zip |
FindPackageHandleStandardArgs needs cmake > 2.4
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindCheck.cmake | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/cmake/modules/FindCheck.cmake b/cmake/modules/FindCheck.cmake index 45e9626..7006db3 100644 --- a/cmake/modules/FindCheck.cmake +++ b/cmake/modules/FindCheck.cmake @@ -9,10 +9,13 @@ FIND_PATH(CHECK_INCLUDE_DIR NAMES check.h) # Look for the library. FIND_LIBRARY(CHECK_LIBRARY NAMES check) -# handle the QUIETLY and REQUIRED arguments and set CHECK_FOUND to TRUE if -# all listed variables are TRUE -INCLUDE(FindPackageHandleStandardArgs) -FIND_PACKAGE_HANDLE_STANDARD_ARGS(Check "Please install 'check' and 'check-devel' packages" CHECK_LIBRARY CHECK_INCLUDE_DIR) +IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERISION} GREATER 2.4) + # handle the QUIETLY and REQUIRED arguments and set CHECK_FOUND to TRUE if + # all listed variables are TRUE + INCLUDE(FindPackageHandleStandardArgs) + + FIND_PACKAGE_HANDLE_STANDARD_ARGS(Check "Please install 'check' and 'check-devel' packages" CHECK_LIBRARY CHECK_INCLUDE_DIR) +ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERISION} GREATER 2.4) IF(CHECK_FOUND) SET( CHECK_LIBRARIES ${CHECK_LIBRARY} ) |