Skip to content

Commit

Permalink
Merge pull request #2665 from emminizer/webp-sharpyuv-optional
Browse files Browse the repository at this point in the history
WebP: sharpyuv only added if target exists, supporting older WebP
  • Loading branch information
jasonbeverage authored Dec 3, 2024
2 parents cc322ec + 5f26bd7 commit c6873d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/osgEarthDrivers/webp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ if (WebP_FOUND)
add_osgearth_plugin(
TARGET osgdb_webp
SOURCES ReaderWriterWebP.cpp)
target_link_libraries(osgdb_webp PRIVATE WebP::webp WebP::sharpyuv)
target_link_libraries(osgdb_webp PRIVATE WebP::webp)
if(TARGET WebP::sharpyuv)
target_link_libraries(osgdb_webp PRIVATE WebP::sharpyuv)
endif()
endif()

0 comments on commit c6873d9

Please sign in to comment.