diff options
author | Allen Winter <winter@kde.org> | 2022-01-16 12:19:08 -0500 |
---|---|---|
committer | Allen Winter <winter@kde.org> | 2022-01-16 12:21:48 -0500 |
commit | 4f0a0b6470a821ae186ac5451e55d30417eab80a (patch) | |
tree | 9421fab4d62e4afb7da18646a56ceca150b2e5c5 | |
parent | 5321c56b584aa39b39c449656dd31649a5824861 (diff) | |
download | libical-git-4f0a0b6470a821ae186ac5451e55d30417eab80a.tar.gz |
CMakeLists.txt - Apple Xcodec provided BDB doesn't work here
The Apple Xcode provided db doesn't work in our code.
Therefore, set a default BerekelyDB_ROOT_DIR to look in homebrew.
BerekelyDB_ROOT_DIR can be overridden by user to look elsewhere.
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bad4fcdc..dad87cda 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -202,7 +202,7 @@ endif() if(NOT "$ENV{ICU_ROOT}") #Use the homebrew version. MacOS provided ICU doesn't provide development files if(APPLE) - set(ICU_ROOT "/usr/local/opt/icu4c") #look for the homebrew version first + set(ICU_ROOT "/usr/local/opt/icu4c") endif() endif() find_package(ICU COMPONENTS uc i18n) @@ -241,6 +241,12 @@ if(ICU_FOUND) endif() # compile in Berkeley DB support +if(NOT "$ENV{BerkeleyDB_ROOT_DIR}") + if(APPLE) + #Use the homebrew version. Xcode's version doesn't work for us. + set(BerkeleyDB_ROOT_DIR "/usr/local/opt/berkeley-db") + endif() +endif() find_package(BerkeleyDB) set_package_properties(BerkeleyDB PROPERTIES TYPE OPTIONAL |