diff --git a/Plugins/DbSqliteCipher/DbSqliteCipher.pro b/Plugins/DbSqliteCipher/DbSqliteCipher.pro index 33cd7c633d..5ee3af662f 100644 --- a/Plugins/DbSqliteCipher/DbSqliteCipher.pro +++ b/Plugins/DbSqliteCipher/DbSqliteCipher.pro @@ -25,7 +25,7 @@ HEADERS += dbsqlitecipher.h \ dbsqlitecipherinstance.h sqlcipher.h -mac: { +macx: { exists( /opt/local/include/openssl-3/openssl/crypto.h ) { message( "Configuring OpenSSL from MacPorts" ) INCLUDEPATH += /opt/local/include/openssl-3 diff --git a/Plugins/DbSqliteWx/DbSqliteWx.pro b/Plugins/DbSqliteWx/DbSqliteWx.pro index f2f4e88693..e896838703 100644 --- a/Plugins/DbSqliteWx/DbSqliteWx.pro +++ b/Plugins/DbSqliteWx/DbSqliteWx.pro @@ -27,9 +27,16 @@ isEmpty(WXSQLITE_LIB): { HEADERS += wxsqlite3.h } -max: { - INCLUDEPATH += /usr/local/opt/openssl/include - LIBS += -L/usr/local/opt/openssl/lib +macx: { + exists( /opt/local/include/openssl-3/openssl/crypto.h ) { + message( "Configuring OpenSSL from MacPorts" ) + INCLUDEPATH += /opt/local/include/openssl-3 + LIBS += -L/opt/local/lib/openssl-3 + } else { + message( "Configuring OpenSSL from HomeBrew" ) + INCLUDEPATH += /usr/local/opt/openssl/include + LIBS += -L/usr/local/opt/openssl/lib + } } !macx: { LIBS += -L$${PWD}/../deps/lib/$${PLATFORM}/