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:
authorGiovanni Panozzo <giovanni@panozzo.it>2015-07-11 18:19:00 +0300
committerGiovanni Panozzo <giovanni@panozzo.it>2015-07-11 18:19:00 +0300
commit69e2aedfbb94e52a2b1b87fe1d5d8e276c423fff (patch)
treec96dadcf6a9c26e97e367ea630631e0ec3b4f026 /cmake
parent9fbc9ff8944d6ffe329f647f831f05f3f06ffcd0 (diff)
Improve libfreerdp version checking in cmake files
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindFREERDP.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/FindFREERDP.cmake b/cmake/FindFREERDP.cmake
index b94086c2a..a32d3b1f7 100644
--- a/cmake/FindFREERDP.cmake
+++ b/cmake/FindFREERDP.cmake
@@ -18,7 +18,10 @@
# Boston, MA 02110-1301, USA.
find_package(PkgConfig)
-pkg_check_modules(PC_FREERDP freerdp>=1.2)
+if(PKG_CONFIG_FOUND)
+ pkg_check_modules(PC_FREERDP freerdp>=${FREERDP_REQUIRED_VERSIONSTRING})
+endif()
+
set(FREERDP_DEFINITIONS ${PC_FREERDP_CFLAGS_OTHER})
find_path(FREERDP_INCLUDE_DIR NAMES freerdp/freerdp.h