[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [krdc/frameworks] rdp: Fix CMake warning
From:       Urs Wolfer <uwolfer () kde ! org>
Date:       2016-01-22 14:33:02
Message-ID: E1aMclq-0005bN-6j () scm ! kde ! org
[Download RAW message or body]

Git commit e2784daec3405b64c81aca7f031f6e49a75cd6f5 by Urs Wolfer.
Committed on 22/01/2016 at 14:31.
Pushed by uwolfer into branch 'frameworks'.

Fix CMake warning

- RDP plugin can be build also when xfreerdp is not installed
  since it is a runtime dependency only.
- At the moment, xfreerdp dependency is not listed in CMake
  feature summary.

M  +5    -1    rdp/CMakeLists.txt

http://commits.kde.org/krdc/e2784daec3405b64c81aca7f031f6e49a75cd6f5

diff --git a/rdp/CMakeLists.txt b/rdp/CMakeLists.txt
index 2250846..0a41ba2 100644
--- a/rdp/CMakeLists.txt
+++ b/rdp/CMakeLists.txt
@@ -1,4 +1,8 @@
-if(FREERDP_EXECUTABLE_FOUND)
+if(Q_WS_X11)
+    set(HAVE_XFREERDP true)
+endif(Q_WS_X11)
+
+if(HAVE_XFREERDP)
     add_definitions(-DKDE_DEFAULT_DEBUG_AREA=5012)
 
     include_directories(
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic