Commit 57d23603 authored by Florian Oetke's avatar Florian Oetke
Browse files

fixed SDL2_LIBRARY -> SDL2_LIBRARIES

parent 198864c1
......@@ -49,14 +49,16 @@ if(MIRRAGE_PREFER_SYSTEM_SDL)
if(EXISTS ${SDL2_INCLUDE_DIR}/SDL.h)
add_library(mirrage::deps::SDL2 INTERFACE IMPORTED GLOBAL)
set_property(TARGET mirrage::deps::SDL2 PROPERTY INTERFACE_LINK_LIBRARIES ${SDL2_LIBRARY})
set_property(TARGET mirrage::deps::SDL2 PROPERTY INTERFACE_LINK_LIBRARIES ${SDL2_LIBRARIES})
set_property(TARGET mirrage::deps::SDL2 PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${SDL2_INCLUDE_DIR})
message("Generated SDL2 target: ${SDL2_LIBRARIES}; ${SDL2_INCLUDE_DIR}")
endif()
endif()
endif()
endif()
if(NOT TARGET mirrage::deps::SDL2)
message("Building SDL2 from source")
add_subdirectory(SDL)
add_library(mirrage::deps::SDL2 ALIAS SDL2-static)
add_library(mirrage::deps::SDL2main ALIAS SDL2main)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment