Fix SSL examples
authorKurt Pattyn <pattyn.kurt@gmail.com>
Sun, 22 Dec 2013 11:40:53 +0000 (12:40 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 22 Dec 2013 11:41:29 +0000 (12:41 +0100)
Only include ssl examples when ssl is enabled in Qt

Change-Id: I1ab8ec068980c0b6b9f19b47d05ae8fee3d17e79
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
examples/examples.pro

index 2589298..76a0e9f 100644 (file)
@@ -2,7 +2,11 @@ TEMPLATE = subdirs
 
 SUBDIRS = echoclient \
           echoserver \
-          sslechoserver \
-          sslechoclient \
           simplechat
 qtHaveModule(quick): SUBDIRS += qmlwebsocketclient
+
+contains(QT_CONFIG, openssl) | contains(QT_CONFIG, openssl-linked) {
+SUBDIRS +=  \
+            sslechoserver \
+            sslechoclient
+}