From aa1364fbdf8700a2c3d2176180f92fb9a4b44251 Mon Sep 17 00:00:00 2001 From: DoctorNoobingstoneIPresume <47064117+DoctorNoobingstoneIPresume@users.noreply.github.com> Date: Mon, 15 Nov 2021 07:51:54 +0200 Subject: Support for Cygwin toolchain. (#351) Also tested with the latest version running on Windows XP (gcc-5.4.0) (http://www.crouchingtigerhiddenfruitbat.org/cygwin/timemachine.html). Signed-off-by: Adder --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a461891..b3a9339 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -15,7 +15,7 @@ else() set(GTEST_LIBS ${GTEST_BOTH_LIBRARIES}) endif() -if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") +if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux|CYGWIN") set(LIBRARIES "") else() set(LIBRARIES socket) -- cgit v1.2.1