mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-12 05:41:10 +01:00
CMake: Small improvement for MinGW
This is currently a small patch we have in our Conan package for SDL4dc894cc2c/recipes/sdl2/all/conanfile.py (L184)
Introduced in9fb93a6044
This commit is contained in:
parent
6f0865fe42
commit
3433f3c4cc
@ -2311,7 +2311,7 @@ if(NOT CMAKE_HOST_WIN32)
|
|||||||
execute_process(COMMAND sh ${SDL2_SOURCE_DIR}/build-scripts/updaterev.sh
|
execute_process(COMMAND sh ${SDL2_SOURCE_DIR}/build-scripts/updaterev.sh
|
||||||
WORKING_DIRECTORY ${SDL2_BINARY_DIR})
|
WORKING_DIRECTORY ${SDL2_BINARY_DIR})
|
||||||
endif()
|
endif()
|
||||||
if(NOT WINDOWS OR CYGWIN)
|
if(NOT WINDOWS OR CYGWIN OR MINGW)
|
||||||
|
|
||||||
set(prefix ${CMAKE_INSTALL_PREFIX})
|
set(prefix ${CMAKE_INSTALL_PREFIX})
|
||||||
|
|
||||||
@ -2672,7 +2672,7 @@ else()
|
|||||||
set(SOPOSTFIX "")
|
set(SOPOSTFIX "")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT (WINDOWS OR CYGWIN))
|
if(NOT (WINDOWS OR CYGWIN OR MINGW))
|
||||||
if(SDL_SHARED)
|
if(SDL_SHARED)
|
||||||
set(SOEXT ${CMAKE_SHARED_LIBRARY_SUFFIX}) # ".so", ".dylib", etc.
|
set(SOEXT ${CMAKE_SHARED_LIBRARY_SUFFIX}) # ".so", ".dylib", etc.
|
||||||
get_target_property(SONAME SDL2 OUTPUT_NAME)
|
get_target_property(SONAME SDL2 OUTPUT_NAME)
|
||||||
|
Loading…
Reference in New Issue
Block a user