Skip to content

Commit 9ef21b2

Browse files
authored
fix: OS detection logic to allow compiling with MYSYS cmake on Windows (#121)
1 parent 6c921ca commit 9ef21b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
2121
PREFIX lib)
2222

2323
# This cannot be a generator expression in this version of CMake
24-
if (NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
24+
if (NOT (MSVC OR MSYS OR MINGW OR WIN32))
2525
set_property(TARGET ${PROJECT_NAME} PROPERTY SUFFIX .so)
2626
endif()
2727

0 commit comments

Comments
 (0)