Skip to content

Commit

Permalink
fix: OS detection logic to allow compiling with MYSYS cmake on Windows (
Browse files Browse the repository at this point in the history
  • Loading branch information
saggitar authored Mar 5, 2024
1 parent 6c921ca commit 9ef21b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 9ef21b2

Please sign in to comment.