From 9ef21b2e6bb6ebeaf349a0781745549bbb870d27 Mon Sep 17 00:00:00 2001 From: Maximilian Schmidt Date: Tue, 5 Mar 2024 15:00:47 +0100 Subject: [PATCH] fix: OS detection logic to allow compiling with MYSYS cmake on Windows (#121) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a4e9d0..1e79209 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX lib) # This cannot be a generator expression in this version of CMake -if (NOT CMAKE_SYSTEM_NAME STREQUAL "Windows") +if (NOT (MSVC OR MSYS OR MINGW OR WIN32)) set_property(TARGET ${PROJECT_NAME} PROPERTY SUFFIX .so) endif()