From 03d12b4b9491e497aabaf551b4836c486afb0be7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 30 May 2008 21:08:28 +0000 Subject: [PATCH] Added version check on FIND_PACKAGE(PkgConfig) to attempt to fix build with older versions of CMake --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 953d04221..96917bb89 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -247,9 +247,12 @@ ELSE(DESIRED_QT_VERSION) ENDIF(DESIRED_QT_VERSION) - #use pkg-config to find various modues -FIND_PACKAGE(PkgConfig) +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) IF(PKG_CONFIG_FOUND) @@ -268,7 +271,6 @@ IF(PKG_CONFIG_FOUND) ENDIF(PKG_CONFIG_FOUND) - # # Test to determine if we want the "tripledot" form of the GLU tesselator callback. #