Skip to content

Commit

Permalink
Don't check for ffmpeg if ALSOFT_EXAMPLES is false
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Feb 12, 2025
1 parent eb2b8b8 commit 67b1a3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1333,9 +1333,9 @@ if(ALSOFT_UTILS)
endif()
if(ALSOFT_UTILS OR ALSOFT_EXAMPLES)
find_package(SndFile)
if(SDL3_FOUND)
find_package(FFmpeg COMPONENTS AVFORMAT AVCODEC AVUTIL SWSCALE SWRESAMPLE)
endif()
endif()
if(ALSOFT_EXAMPLES AND SDL3_FOUND)
find_package(FFmpeg COMPONENTS AVFORMAT AVCODEC AVUTIL SWSCALE SWRESAMPLE)
endif()

if(NOT WIN32)
Expand Down

0 comments on commit 67b1a3a

Please sign in to comment.