mirror of
https://github.com/NoelFB/blah.git
synced 2025-04-06 00:26:05 +08:00
fixing SDL2 if can't be found
This commit is contained in:
parent
0c3cac2d08
commit
14a53c0f3a
@ -122,7 +122,11 @@ if (PLATFORM_SDL2)
|
||||
add_subdirectory(${sdl2_SOURCE_DIR} ${sdl2_BINARY_DIR})
|
||||
endif()
|
||||
|
||||
endif()
|
||||
# statically link SDL2 since we're building it ourselves
|
||||
set(LIBS ${LIBS} SDL2main SDL2-static)
|
||||
target_include_directories(blah PUBLIC ${sdl2_SOURCE_DIRS}/include)
|
||||
|
||||
else()
|
||||
|
||||
# Add Library and Include Dirs
|
||||
set(LIBS ${LIBS} ${SDL2_LIBRARIES})
|
||||
@ -130,6 +134,8 @@ if (PLATFORM_SDL2)
|
||||
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
# use the Win32 Platform Backend
|
||||
elseif (PLATFORM_WIN32)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user