From 8a0aac18eae32d9c27fb2c515c0461ef38f53d7b Mon Sep 17 00:00:00 2001 From: Isabella Muerte <63051+slurps-mad-rips@users.noreply.github.com> Date: Mon, 30 Sep 2019 22:00:04 -0700 Subject: [PATCH] Update `check` command to output text on failure Move pugixml-config.cmake.in to scripts/ to prevent polluting the root --- CMakeLists.txt | 5 +++-- pugixml-config.cmake.in => scripts/pugixml-config.cmake.in | 0 2 files changed, 3 insertions(+), 2 deletions(-) rename pugixml-config.cmake.in => scripts/pugixml-config.cmake.in (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae4e996..384e627 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -145,7 +145,7 @@ target_compile_options(pugixml $<${msvc-rt-mt-static}:-MT>) configure_package_config_file( - "${PROJECT_SOURCE_DIR}/pugixml-config.cmake.in" + "${PROJECT_SOURCE_DIR}/scripts/pugixml-config.cmake.in" "${PROJECT_BINARY_DIR}/pugixml-config.cmake" INSTALL_DESTINATION ${CMAKE_INSTALL_DATADIR} NO_CHECK_REQUIRED_COMPONENTS_MACRO @@ -194,7 +194,8 @@ if (BUILD_TESTS) file(GLOB fuzz-sources ${fuzz-pattern}) list(REMOVE_ITEM test-sources ${fuzz-sources}) - add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) + add_custom_target(check + COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure) add_executable(pugixml-check ${test-sources}) add_test(NAME pugixml::test diff --git a/pugixml-config.cmake.in b/scripts/pugixml-config.cmake.in similarity index 100% rename from pugixml-config.cmake.in rename to scripts/pugixml-config.cmake.in