CMake: Fix case in FindPugixml resulting in false negative

As mentioned in GH-6652.
This commit is contained in:
Rémi Verschelde
2018-05-30 07:34:40 +02:00
parent 1825e231a3
commit d37ccc844e
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ mark_as_advanced(pugixml_INCLUDE_DIRS pugixml_LIBRARIES)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(pugixml REQUIRED_VARS pugixml_LIBRARIES pugixml_INCLUDE_DIRS)
if(Pugixml_FOUND AND NOT TARGET pugixml)
if(pugixml_FOUND AND NOT TARGET pugixml)
add_library(pugixml UNKNOWN IMPORTED)
set_target_properties(pugixml PROPERTIES
IMPORTED_LOCATION "${pugixml_LIBRARIES}"