diff options
author | Iain Lane <iain.lane@canonical.com> | 2014-11-10 14:14:15 +0300 |
---|---|---|
committer | Iain Lane <iain.lane@canonical.com> | 2014-11-10 14:15:18 +0300 |
commit | a3ceaffab69df885e907596cf0e23e39061f7d3a (patch) | |
tree | 79b0abce228bd3fe3b67d4d0cb87037bd935a0b0 /cmake/FindVTE.cmake | |
parent | 007b90782b0bdf50b1c34178229d1c37016f8201 (diff) |
Update to work with vte 2.91 as well as 2.90
Diffstat (limited to 'cmake/FindVTE.cmake')
-rw-r--r-- | cmake/FindVTE.cmake | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cmake/FindVTE.cmake b/cmake/FindVTE.cmake index cbbe95681..914bd3106 100644 --- a/cmake/FindVTE.cmake +++ b/cmake/FindVTE.cmake @@ -21,11 +21,17 @@ if(NOT _VTE_VERSION_NUM) set(_VTE_LIB_NAME vte) set(_VTE_VERSION vte) else() - set(_VTE_LIB_NAME vte${_VTE_VERSION_NUM}) + if(${_VTE_VERSION_NUM} VERSION_LESS 2.91) + set(_VTE_LIB_NAME vte${_VTE_VERSION_NUM}) + else() + set(_VTE_LIB_NAME vte-${_VTE_VERSION_NUM}) + endif() set(_VTE_VERSION vte-${_VTE_VERSION_NUM}) endif() -string(REPLACE . _ _VTE_LIB_NAME ${_VTE_LIB_NAME}) +if(${_VTE_VERSION_NUM} VERSION_LESS 2.91) + string(REPLACE . _ _VTE_LIB_NAME ${_VTE_LIB_NAME}) +endif() pkg_check_modules(PC_VTE ${_VTE_VERSION}) |