From ec0cdc46f628a168c658ce96cbed054559c5e273 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 21 Sep 2018 13:55:33 -0700 Subject: [PATCH] Workaround Windows slowness --- test/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index fa8402e1..71efeeb1 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -165,8 +165,11 @@ if (FMT_PEDANTIC) "-DCXX_STANDARD_FLAG=${CXX_STANDARD_FLAG}" "-DPEDANTIC_COMPILE_FLAGS=${PEDANTIC_COMPILE_FLAGS}" "-DSUPPORTS_USER_DEFINED_LITERALS=${SUPPORTS_USER_DEFINED_LITERALS}") +endif () - # test if the targets are findable from the build directory +# These tests are disabled on Windows because they take too long. +if (FMT_PEDANTIC AND NOT WIN32) + # Test if the targets are found from the build directory. add_test(find-package-test ${CMAKE_CTEST_COMMAND} -C ${CMAKE_BUILD_TYPE} --build-and-test @@ -181,7 +184,7 @@ if (FMT_PEDANTIC) "-DPEDANTIC_COMPILE_FLAGS=${PEDANTIC_COMPILE_FLAGS}" "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}") - # test if the targets are findable when add_subdirectory is used + # Test if the targets are found when add_subdirectory is used. add_test(add-subdirectory-test ${CMAKE_CTEST_COMMAND} -C ${CMAKE_BUILD_TYPE} --build-and-test