CMake: Small improvement for MinGW

This is currently a small patch we have in our Conan package for SDL 4dc894cc2c/recipes/sdl2/all/conanfile.py (L184)

Introduced in 9fb93a6044
main
Croydon 2021-07-08 01:18:01 +02:00 committed by Sam Lantinga
parent 6f0865fe42
commit 3433f3c4cc
1 changed files with 2 additions and 2 deletions

View File

@ -2311,7 +2311,7 @@ if(NOT CMAKE_HOST_WIN32)
execute_process(COMMAND sh ${SDL2_SOURCE_DIR}/build-scripts/updaterev.sh
WORKING_DIRECTORY ${SDL2_BINARY_DIR})
endif()
if(NOT WINDOWS OR CYGWIN)
if(NOT WINDOWS OR CYGWIN OR MINGW)
set(prefix ${CMAKE_INSTALL_PREFIX})
@ -2672,7 +2672,7 @@ else()
set(SOPOSTFIX "")
endif()
if(NOT (WINDOWS OR CYGWIN))
if(NOT (WINDOWS OR CYGWIN OR MINGW))
if(SDL_SHARED)
set(SOEXT ${CMAKE_SHARED_LIBRARY_SUFFIX}) # ".so", ".dylib", etc.
get_target_property(SONAME SDL2 OUTPUT_NAME)