aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2021-06-23 12:07:37 +0200
committerPeter Wu <peter@lekensteyn.nl>2021-06-24 22:55:50 +0000
commita7ef7ff40df3d7d3b7f10beb667eedf2feacf57d (patch)
treea3038f5d75df302e62621028c28f22b2d6705d21
parent16d9f8948c6936841d4f595f697c02371fe629d5 (diff)
CMake: clear stale MaxMindDB cache entries if needed
On macOS with Homebrew, the version is included with the library path. On updates, the old MAXMINDDB_LIBRARY is invalidated. However ws_find_package only checks MaxMindDB_LIBRARY. Windows has a similar problem. Make sure to clear the stale value such that newer versions can be found, fixing the build. Fixes #17069
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eb251ea217..601c4e9073 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1207,6 +1207,7 @@ if(BUILD_wireshark)
endif()
# MaxMind DB address resolution
+reset_find_package(MAXMINDDB)
ws_find_package(MaxMindDB BUILD_mmdbresolve HAVE_MAXMINDDB)
# SMI SNMP