Improve (hopefully fix) OpenSSL recognition
[quassel.git] / CMakeLists.txt
index 16dac30..889d2b0 100644 (file)
@@ -69,6 +69,9 @@ endif(SPUTDEV)
 
 # Set up OpenSSL
 find_package(OpenSSL)
+if(NOT OPENSSL_FOUND)
+  add_definitions(-DQT_NO_OPENSSL)
+endif(NOT OPENSSL_FOUND)
 
 # Select a Qt installation here, if you don't want to use system Qt
 if(QT)