Make it build in arch linux and Debian
* Probably unresolved external due to newer gcc, thus
added libsdl to libui.a as well.
* Make it work for all distros, which either have SDL2::SDL2
or ${SDL2_LIBRARIES}, provided by sdl2-config or FindSDL2.cmake.
Signed-off-by: Andreas J. Reichel <homebase_ar@web.de>
This commit is contained in:
@@ -82,7 +82,11 @@ if(MINGW)
|
||||
elseif(WIN32)
|
||||
target_link_libraries(86Box SDL2::SDL2)
|
||||
else()
|
||||
target_link_libraries(86Box ${SDL2_LIBRARIES})
|
||||
if (TARGET SDL2::SDL2)
|
||||
target_link_libraries(86Box SDL2::SDL2)
|
||||
else()
|
||||
target_link_libraries(86Box ${SDL2_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_package(PNG REQUIRED)
|
||||
|
||||
Reference in New Issue
Block a user