From: Mika Lindqvist Date: Fri, 24 Feb 2017 15:18:06 +0000 (+0200) Subject: CMakeLists.txt: Fix tests on MinGW. X-Git-Tag: 1.9.9-b1~669 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd1541c0a2b9c8b1c59354619cdd1547fcfd64c5;p=thirdparty%2Fzlib-ng.git CMakeLists.txt: Fix tests on MinGW. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ce9ad40ab..31ee6e3b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -532,7 +532,7 @@ endif() add_executable(example test/example.c) target_link_libraries(example zlib) -add_test(example example) +add_test(example example${CMAKE_EXECUTABLE_SUFFIX}) add_executable(minigzip test/minigzip.c) target_link_libraries(minigzip zlib) @@ -541,7 +541,7 @@ if(HAVE_OFF64_T) add_executable(example64 test/example.c) target_link_libraries(example64 zlib) set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64") - add_test(example64 example64) + add_test(example64 example64${CMAKE_EXECUTABLE_SUFFIX}) add_executable(minigzip64 test/minigzip.c) target_link_libraries(minigzip64 zlib)