diff --git a/cmake/TestLibXml2ConstErrorStructuredErrorCallback.cmake b/cmake/TestLibXml2ConstErrorStructuredErrorCallback.cmake index 908aa48a2..ca75db30d 100644 --- a/cmake/TestLibXml2ConstErrorStructuredErrorCallback.cmake +++ b/cmake/TestLibXml2ConstErrorStructuredErrorCallback.cmake @@ -28,6 +28,7 @@ function(Test_LibXml2_Const_Error_Structured_Error_Callback) cmake_minimum_required(VERSION 3.18.0) project(undefined CXX) add_library(foo SHARED \"foo.cpp\") +message(STATUS \"CMAKE_PREFIX_PATH=\${CMAKE_PREFIX_PATH}\") ") if(HAVE_LIBXML2_CONFIG) file(TO_CMAKE_PATH "${LibXml2_DIR}" _SAFE_LibXml2_DIR) @@ -40,6 +41,7 @@ target_link_libraries(foo PUBLIC ${LIBXML2_TARGET_NAME}) else() file(APPEND "${_TEST_PROJECT_DIR}/CMakeLists.txt" " +message(STATUS \"Not using the configuration file ...\") find_package(LibXml2) target_include_directories(foo PUBLIC ${LIBXML2_INCLUDE_DIR}) target_link_libraries(foo PUBLIC ${LIBXML2_LIBRARIES}) diff --git a/cmake/environmentchecks.cmake b/cmake/environmentchecks.cmake index 27e4f73d3..218b57b20 100644 --- a/cmake/environmentchecks.cmake +++ b/cmake/environmentchecks.cmake @@ -155,6 +155,7 @@ if(LibXml2_FOUND) endif() endforeach() else() +message(STATUS "CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}") find_package(LibXml2 REQUIRED) set(_LibXml2_FIND_REPORTED TRUE CACHE INTERNAL "Flag for reporting on what LibXml2 was found.") if(TARGET z)