cmake: use *_STATIC_* variables when linking to a static ffmpeg
This commit is contained in:
1 parent
88f2fb9dcf
commit
ebf5e08fa1
4 files changed
+86
-100
No files matched your search
+1
-2
@@ -184,9 +184,8 @@ endif()
|
||||
|
||||
set(FFmpeg_FIND_COMPONENTS AVCODEC AVFORMAT AVUTIL SWSCALE)
|
||||
include("${SDL3_SOURCE_DIR}/cmake/FindFFmpeg.cmake")
|
||||
if(FFMPEG_FOUND)
|
||||
if(FFmpeg_FOUND)
|
||||
add_sdl_test_executable(testspriteffmpeg NO_C90 SOURCES testspriteffmpeg.c ${icon_bmp_header})
|
||||
target_include_directories(testspriteffmpeg PRIVATE ${FFMPEG_INCLUDE_DIRS})
|
||||
target_link_libraries(testspriteffmpeg PRIVATE ${FFMPEG_LIBRARIES})
|
||||
else()
|
||||
message(STATUS "Cannot find ffmpeg, skipping testspriteffmpeg")
|
||||
|
||||
Reference in new issue
Block a user