File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,10 @@ endif()
258
258
259
259
if (WITH_SDL )
260
260
find_package (SDL2 REQUIRED )
261
+ find_package (PkgConfig REQUIRED )
262
+
263
+ #IMG_SaveJPG was added in 2.0.2, SavePNG was added 2.0.0
264
+ pkg_check_modules (SDL2_image REQUIRED SDL2_image>=2.0.2 )
261
265
set (HAS_SDL TRUE )
262
266
endif ()
263
267
Original file line number Diff line number Diff line change @@ -626,6 +626,9 @@ else() # Unix / Linux TODO: Remember to find and locate the zip archive files.
626
626
627
627
if (SDL2_FOUND )
628
628
list (APPEND SMDATA_LINK_LIB ${SDL2_LIBRARIES} )
629
+ list (APPEND SMDATA_LINK_LIB ${SDL2_image_LIBRARIES} )
630
+ list (APPEND SM_INCLUDE_DIRS ${SDL2_INCLUDE_DIRS} )
631
+ list (APPEND SM_INCLUDE_DIRS ${SDL2_image_INCLUDE_DIRS} )
629
632
sm_add_compile_definition ("${SM_EXE_NAME} " HAVE_SDL )
630
633
endif ()
631
634
You can’t perform that action at this time.
0 commit comments