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
This commit is contained in:
Peter Wu 2021-06-23 12:07:37 +02:00
parent 16d9f8948c
commit a7ef7ff40d
1 changed files with 1 additions and 0 deletions

View File

@ -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