From aed55d4e7ebd483ad05fef5587d6cda0dd63a2c5 Mon Sep 17 00:00:00 2001 From: Donny Lawrence Date: Tue, 4 Jun 2019 14:27:33 -0500 Subject: [PATCH] CMake: Don't compile PRC's encryptStream unless we have OpenSSL. --- dtool/src/prc/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dtool/src/prc/CMakeLists.txt b/dtool/src/prc/CMakeLists.txt index 0fb97b1e95..c1777bc6c4 100644 --- a/dtool/src/prc/CMakeLists.txt +++ b/dtool/src/prc/CMakeLists.txt @@ -53,7 +53,6 @@ set(P3PRC_SOURCES configVariableManager.cxx configVariableSearchPath.cxx configVariableString.cxx - encryptStreamBuf.cxx encryptStream.cxx nativeNumericData.cxx notify.cxx notifyCategory.cxx @@ -70,6 +69,10 @@ if(ANDROID) androidLogStream.cxx) endif() +if(HAVE_OPENSSL) + list(APPEND P3PRC_SOURCES encryptStreamBuf.cxx encryptStream.cxx) +endif() + set(P3PRC_IGATEEXT streamReader_ext.cxx streamReader_ext.h