use stb_image.h instead of SDL2_image
This commit is contained in:
@ -4,7 +4,6 @@ project(townengine LANGUAGES C)
|
||||
|
||||
# SDL dependencies
|
||||
find_package(SDL2 REQUIRED GLOBAL)
|
||||
find_package(SDL2_image REQUIRED GLOBAL)
|
||||
|
||||
# CMake actually has no default configuration and it's toolchain file dependent, set debug if not specified
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
@ -164,6 +163,7 @@ function(give_options target)
|
||||
-Wconversion -Wno-sign-conversion
|
||||
-Werror=vla
|
||||
-Wno-missing-field-initializers
|
||||
-Wunused-result
|
||||
$<$<STREQUAL:${CMAKE_C_COMPILER_ID},Gnu>:-Wcast-align=strict>)
|
||||
|
||||
target_compile_options(${target} PRIVATE
|
||||
@ -194,7 +194,6 @@ endfunction()
|
||||
function(link_deps target)
|
||||
target_link_libraries(${target} PUBLIC
|
||||
SDL2::SDL2
|
||||
SDL2_image::SDL2_image
|
||||
physfs-static
|
||||
xms)
|
||||
endfunction()
|
||||
|
Reference in New Issue
Block a user