Skip to content

Commit

Permalink
Add missing library deps to rav1e::rav1e on Windows. (#2106)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrabaud authored Apr 15, 2024
1 parent 8eb2fca commit 5280f62
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/Modules/Findrav1e.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,11 @@ if(RAV1E_LIBRARY)
endif()
set_target_properties(rav1e::rav1e PROPERTIES IMPORTED_LOCATION "${RAV1E_LIBRARY}" IMPORTED_SONAME rav1e)
target_include_directories(rav1e::rav1e INTERFACE ${RAV1E_INCLUDE_DIR})
# The following is copied from the main CMakeLists.txt.
if(WIN32)
target_link_libraries(rav1e::rav1e INTERFACE ntdll.lib userenv.lib ws2_32.lib bcrypt.lib)
elseif(UNIX AND NOT APPLE)
target_link_libraries(rav1e::rav1e INTERFACE ${CMAKE_DL_LIBS}) # for backtrace
endif()
endif()
endif()

0 comments on commit 5280f62

Please sign in to comment.