Added version check on FIND_PACKAGE(PkgConfig) to attempt to fix build with older versions of CMake
This commit is contained in:
parent
65772e451c
commit
03d12b4b94
@ -247,10 +247,13 @@ 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)
|
||||
|
||||
IF(PKG_CONFIG_FOUND)
|
||||
|
||||
INCLUDE(FindPkgConfig)
|
||||
@ -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.
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user