Merge pull request #1794 from paulromano/pugixml-find-fix

Prevent pugixml from being found via PATH
This commit is contained in:
John Tramm 2021-03-16 09:46:31 -05:00 committed by GitHub
commit c4e0881d07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,13 +54,13 @@ endif()
#===============================================================================
# If not found, we just pull appropriate versions from github and build them.
find_package(fmt QUIET)
find_package(fmt QUIET NO_SYSTEM_ENVIRONMENT_PATH)
if(fmt_FOUND)
message(STATUS "Found fmt: ${fmt_DIR} (version ${fmt_VERSION})")
else()
message(STATUS "Did not find fmt, will use submodule instead")
endif()
find_package(pugixml QUIET)
find_package(pugixml QUIET NO_SYSTEM_ENVIRONMENT_PATH)
if(pugixml_FOUND)
message(STATUS "Found pugixml: ${pugixml_DIR}")
else()