Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Jun 1, 2024
1 parent 940e3a9 commit 89c8557
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -230,17 +230,7 @@ add_compile_definitions(
)

if (NOT WIN32)
find_package(SDL2 2.0.18 REQUIRED)
# Fix to support older SDL2
# https://github.com/OpenXRay/xray-16/issues/1595
if (NOT TARGET SDL2::SDL2 AND DEFINED SDL2_LIBRARIES)
add_library(SDL2::SDL2 UNKNOWN IMPORTED)
set_target_properties(
SDL2::SDL2 PROPERTIES
IMPORTED_LOCATION "${SDL2_LIBRARIES}"
INTERFACE_INCLUDE_DIRECTORIES "${SDL2_INCLUDE_DIRS}"
)
endif()
find_package(SDL2 2.0.18 REQUIRED NAMES SDL2 sdl2 sdl2-2.0-0)
find_package(OpenAL REQUIRED)
find_package(JPEG)
find_package(Ogg REQUIRED)
Expand Down

0 comments on commit 89c8557

Please sign in to comment.