Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/cmake/dependency_utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -548,14 +548,17 @@ macro (checked_find_package pkgname)
# A prior find_package() may have left a bunch of cruft from a
# rejected, unsuitable system install in its Find module. Clear it
# here so it does not pollute our attempt to use the one we just
# built and are about to re-find.
# built and are about to re-find. This includes the version, or a
# stale one from the rejected install would be reported.
foreach (_v IN ITEMS
${pkgname}_LIBRARY ${pkgname}_LIBRARIES
${pkgname}_LIBRARY_RELEASE ${pkgname}_LIBRARY_DEBUG
${pkgname}_INCLUDE_DIR ${pkgname}_INCLUDE_DIRS
${pkgname_upper}_LIBRARY ${pkgname_upper}_LIBRARIES
${pkgname_upper}_LIBRARY_RELEASE ${pkgname_upper}_LIBRARY_DEBUG
${pkgname_upper}_INCLUDE_DIR ${pkgname_upper}_INCLUDE_DIRS)
${pkgname_upper}_INCLUDE_DIR ${pkgname_upper}_INCLUDE_DIRS
${pkgname}_VERSION ${pkgname}_VERSION_STRING
${pkgname_upper}_VERSION ${pkgname_upper}_VERSION_STRING)
unset (${_v})
unset (${_v} CACHE)
endforeach ()
Expand Down
Loading