Changed FIND_PACKAGE(PkgConfig) to INCLUDE(FindPkgConfig OPTIONAL) as per
suggestion from Philip Lowman.
This commit is contained in:
parent
840eab0109
commit
213a2d8d13
@ -248,11 +248,7 @@ ELSE(DESIRED_QT_VERSION)
|
|||||||
ENDIF(DESIRED_QT_VERSION)
|
ENDIF(DESIRED_QT_VERSION)
|
||||||
|
|
||||||
#use pkg-config to find various modues
|
#use pkg-config to find various modues
|
||||||
IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} STRGREATER 2.4.5)
|
INCLUDE(FindPkgConfig OPTIONAL)
|
||||||
|
|
||||||
FIND_PACKAGE(PkgConfig)
|
|
||||||
|
|
||||||
ENDIF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION} STRGREATER 2.4.5)
|
|
||||||
|
|
||||||
IF(PKG_CONFIG_FOUND)
|
IF(PKG_CONFIG_FOUND)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user