Browse Source

CMake: Don't compile PRC's encryptStream unless we have OpenSSL.

Donny Lawrence 6 years ago
parent
commit
aed55d4e7e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      dtool/src/prc/CMakeLists.txt

+ 4 - 1
dtool/src/prc/CMakeLists.txt

@@ -53,7 +53,6 @@ set(P3PRC_SOURCES
   configVariableManager.cxx
   configVariableManager.cxx
   configVariableSearchPath.cxx
   configVariableSearchPath.cxx
   configVariableString.cxx
   configVariableString.cxx
-  encryptStreamBuf.cxx encryptStream.cxx
   nativeNumericData.cxx
   nativeNumericData.cxx
   notify.cxx
   notify.cxx
   notifyCategory.cxx
   notifyCategory.cxx
@@ -70,6 +69,10 @@ if(ANDROID)
     androidLogStream.cxx)
     androidLogStream.cxx)
 endif()
 endif()
 
 
+if(HAVE_OPENSSL)
+  list(APPEND P3PRC_SOURCES encryptStreamBuf.cxx encryptStream.cxx)
+endif()
+
 set(P3PRC_IGATEEXT
 set(P3PRC_IGATEEXT
   streamReader_ext.cxx
   streamReader_ext.cxx
   streamReader_ext.h
   streamReader_ext.h