From a7ef7ff40df3d7d3b7f10beb667eedf2feacf57d Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 23 Jun 2021 12:07:37 +0200 Subject: [PATCH] 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 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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