Skip to content

Commit

Permalink
Use jpeg targets in cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkvdb committed Sep 13, 2024
1 parent cec7c76 commit cbcb2f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
submodules: true
- name: Install linux dependencies
if: ${{ matrix.cfg.os == 'ubuntu-latest' }}
run: sudo apt-get install build-essential ninja-build libavcodec-dev libavformat-dev libavutil-dev libswscale-dev
run: sudo apt-get install build-essential ninja-build libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libswscale-dev
- name: Install osx dependencies
if: ${{ matrix.cfg.os == 'macos-latest' }}
run: brew install ninja cmake ffmpeg
Expand Down
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if (NOT TARGET FFmpeg::avcodec)
endif ()

find_package(JPEG)
if (JPEG_FOUND)
if (TARGET JPEG::JPEG)
set(HAVE_JPEG ON)
endif ()

Expand Down Expand Up @@ -97,8 +97,8 @@ target_link_libraries(libffmpegthumbnailerobj
FFmpeg::avcodec
FFmpeg::avutil
FFmpeg::avfilter
$<$<BOOL:${HAVE_JPEG}>:${JPEG_LIBRARIES}>
$<$<BOOL:${HAVE_PNG}>:PNG::PNG>
$<TARGET_NAME_IF_EXISTS:JPEG::JPEG>
$<TARGET_NAME_IF_EXISTS:PNG::PNG>
)

# we use our own deprecated struct menbers, so disable the warning about it
Expand Down

0 comments on commit cbcb2f6

Please sign in to comment.