Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDaniel M. Weeks <dan@danweeks.net>2012-01-30 03:00:24 +0400
committerDaniel M. Weeks <dan@danweeks.net>2012-01-30 03:06:11 +0400
commit2443fa979fa3418a0c9a54b4758f37bc549e0258 (patch)
treeb6728b674a6e4ca851bfa7a338074a3a233d4501 /cmake
parent9100814b10343f980e0f002830edf8d0c087eb96 (diff)
cmake: allow specifying version when finding vte
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindVTE.cmake16
1 files changed, 13 insertions, 3 deletions
diff --git a/cmake/FindVTE.cmake b/cmake/FindVTE.cmake
index eecb6c485..cbbe95681 100644
--- a/cmake/FindVTE.cmake
+++ b/cmake/FindVTE.cmake
@@ -17,13 +17,23 @@
# Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307, USA.
-pkg_check_modules(PC_VTE vte-2.90)
+if(NOT _VTE_VERSION_NUM)
+ set(_VTE_LIB_NAME vte)
+ set(_VTE_VERSION vte)
+else()
+ set(_VTE_LIB_NAME vte${_VTE_VERSION_NUM})
+ set(_VTE_VERSION vte-${_VTE_VERSION_NUM})
+endif()
+
+string(REPLACE . _ _VTE_LIB_NAME ${_VTE_LIB_NAME})
+
+pkg_check_modules(PC_VTE ${_VTE_VERSION})
find_path(VTE_INCLUDE_DIR NAMES vte/vte.h
HINTS ${PC_VTE_INCLUDEDIR} ${PC_VTE_INCLUDE_DIRS}
- PATH_SUFFIXES vte-2.90)
+ PATH_SUFFIXES ${_VTE_VERSION})
-find_library(VTE_LIBRARY NAMES vte2_90)
+find_library(VTE_LIBRARY NAMES ${_VTE_LIB_NAME})
include(FindPackageHandleStandardArgs)