From 344bbee3db585786867d955430ab6494606bf540 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 21 Aug 2019 11:52:23 +0300 Subject: [PATCH] Fix tests build by CMake on Cygwin * CMakeLists.txt [build_tests && WIN32] (de): Do not specify and add "de" test executable if CYGWIN. --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d31ea3..ad0c85f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -383,8 +383,9 @@ if (build_tests) target_link_libraries(cordtest PRIVATE cord gc) add_test(NAME cordtest COMMAND cordtest) - if (WIN32) - add_executable(de cord/tests/de.c cord/tests/de_win.c cord/tests/de_win.rc) + if (WIN32 AND NOT CYGWIN) + add_executable(de cord/tests/de.c cord/tests/de_win.c + cord/tests/de_win.rc) set_target_properties(de PROPERTIES WIN32_EXECUTABLE TRUE) target_link_libraries(de PRIVATE cord gc gdi32) endif() -- 2.7.4