From 61080717bf7706a94ab115441d5357911c02907d Mon Sep 17 00:00:00 2001 From: Rian Quinn <“rianquinn@gmail.com”> Date: Sat, 18 Mar 2017 14:57:55 -0600 Subject: [PATCH] v1.2 patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rian Quinn <“rianquinn@gmail.com”> --- CMakeLists.txt | 48 +++++++++++++++++++++------------------- single_include/catch.hpp | 12 +++++----- 2 files changed, 32 insertions(+), 28 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 159fcce9a1..1f15704a6b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -243,30 +243,32 @@ SOURCE_GROUP("Tests" FILES ${TEST_SOURCES}) SOURCE_GROUP("Surrogates" FILES ${IMPL_SOURCES}) SOURCE_GROUP("Benchmarks" FILES ${BENCH_SOURCES}) -# configure the executable -include_directories(${HEADER_DIR}) -add_executable(SelfTest ${TEST_SOURCES} ${IMPL_SOURCES} ${HEADERS}) -add_executable(Benchmark ${BENCH_SOURCES} ${HEADERS}) +# ------------------------------------------------------------------------------ +# bareflank: start +# ------------------------------------------------------------------------------ +# include_directories(${HEADER_DIR}) +# add_executable(SelfTest ${TEST_SOURCES} ${IMPL_SOURCES} ${HEADERS}) +# add_executable(Benchmark ${BENCH_SOURCES} ${HEADERS}) +# +# if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang|GNU" ) +# target_compile_options( SelfTest PRIVATE -Wall -Wextra ) +# target_compile_options( Benchmark PRIVATE -Wall -Wextra ) +# endif() +# if ( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" ) +# target_compile_options( SelfTest PRIVATE /W4 /w44265 /WX ) +# target_compile_options( Benchmark PRIVATE /W4 ) +# endif() +# +# enable_testing() +# add_test(NAME RunTests COMMAND SelfTest) -# Add desired warnings -if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang|GNU" ) - target_compile_options( SelfTest PRIVATE -Wall -Wextra ) - target_compile_options( Benchmark PRIVATE -Wall -Wextra ) -endif() -if ( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" ) - target_compile_options( SelfTest PRIVATE /W4 /w44265 /WX ) - target_compile_options( Benchmark PRIVATE /W4 ) -endif() - - -# configure unit tests via CTest -enable_testing() -add_test(NAME RunTests COMMAND SelfTest) - -add_test(NAME ListTests COMMAND SelfTest --list-tests) -set_tests_properties(ListTests PROPERTIES PASS_REGULAR_EXPRESSION "[0-9]+ test cases") +# add_test(NAME ListTests COMMAND SelfTest --list-tests) +# set_tests_properties(ListTests PROPERTIES PASS_REGULAR_EXPRESSION "[0-9]+ test cases") -add_test(NAME ListTags COMMAND SelfTest --list-tags) -set_tests_properties(ListTags PROPERTIES PASS_REGULAR_EXPRESSION "[0-9]+ tags") +# add_test(NAME ListTags COMMAND SelfTest --list-tags) +# set_tests_properties(ListTags PROPERTIES PASS_REGULAR_EXPRESSION "[0-9]+ tags") +# ------------------------------------------------------------------------------ +# bareflank: start +# ------------------------------------------------------------------------------ install(DIRECTORY "single_include/" DESTINATION "include/catch/") diff --git a/single_include/catch.hpp b/single_include/catch.hpp index 79036a4043..ad8b07cf67 100644 --- a/single_include/catch.hpp +++ b/single_include/catch.hpp @@ -2376,11 +2376,14 @@ namespace Catch { // #included from: catch_timer.h #define TWOBLUECUBES_CATCH_TIMER_H_INCLUDED -#ifdef CATCH_PLATFORM_WINDOWS -typedef unsigned long long uint64_t; -#else +// ----------------------------------------------------------------------------- +// bareflank: start +// ----------------------------------------------------------------------------- +// compilation issue with cygwin #include -#endif +// ----------------------------------------------------------------------------- +// bareflank: end +// ----------------------------------------------------------------------------- namespace Catch { @@ -11336,4 +11339,3 @@ int main (int argc, char * const argv[]) { using Catch::Detail::Approx; #endif // TWOBLUECUBES_SINGLE_INCLUDE_CATCH_HPP_INCLUDED -