From 213a2d8d1330f825b23c7873c555c0fcee94be90 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 31 May 2008 08:47:15 +0000 Subject: [PATCH] Changed FIND_PACKAGE(PkgConfig) to INCLUDE(FindPkgConfig OPTIONAL) as per suggestion from Philip Lowman. --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 96917bb89..8cbe720eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -248,11 +248,7 @@ ELSE(DESIRED_QT_VERSION) ENDIF(DESIRED_QT_VERSION) #use pkg-config to find various modues -IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} STRGREATER 2.4.5) - - FIND_PACKAGE(PkgConfig) - -ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} STRGREATER 2.4.5) +INCLUDE(FindPkgConfig OPTIONAL) IF(PKG_CONFIG_FOUND)