Skip to content

Commit

Permalink
Attempt to fix compilation of DbSqliteWx under Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelsalawa committed Nov 29, 2024
1 parent 291952e commit 8ca663f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Plugins/DbSqliteCipher/DbSqliteCipher.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 10 additions & 3 deletions Plugins/DbSqliteWx/DbSqliteWx.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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}/
Expand Down

0 comments on commit 8ca663f

Please sign in to comment.