- brought back old SDL2 CMake module
https://forum.zdoom.org/viewtopic.php?t=72152
This commit is contained in:
parent
1efb9f4def
commit
80ba522b20
2 changed files with 177 additions and 5 deletions
|
|
@ -177,9 +177,9 @@ else()
|
|||
|
||||
# Non-Windows version also needs SDL except native OS X backend
|
||||
if( NOT APPLE OR NOT OSX_COCOA_BACKEND )
|
||||
find_package( SDL2 REQUIRED CONFIG )
|
||||
find_package( SDL2 REQUIRED )
|
||||
|
||||
set( CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES}" "${SDL2_INCLUDE_DIRS}" )
|
||||
set( CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES}" "${SDL2_INCLUDE_DIR}" )
|
||||
CHECK_CXX_SOURCE_COMPILES( "#include <SDL_version.h>
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 6)
|
||||
int main() {}
|
||||
|
|
@ -188,9 +188,9 @@ else()
|
|||
if ( NOT SDL2_MIN_VERSION )
|
||||
message( SEND_ERROR "Only SDL 2.0.6 or later is supported." )
|
||||
endif()
|
||||
|
||||
include_directories( "${SDL2_INCLUDE_DIRS}" )
|
||||
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${SDL2_LIBRARIES}" )
|
||||
|
||||
include_directories( "${SDL2_INCLUDE_DIR}" )
|
||||
set( ZDOOM_LIBS ${ZDOOM_LIBS} "${SDL2_LIBRARY}" )
|
||||
endif()
|
||||
|
||||
find_path( FPU_CONTROL_DIR fpu_control.h )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue