Skip to content

Commit

Permalink
windows fix again
Browse files Browse the repository at this point in the history
  • Loading branch information
louist103 committed Dec 7, 2024
1 parent 3db93d1 commit 2b691e9
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,25 @@ target_link_libraries(future PRIVATE Vorbis::vorbisfile)
target_link_libraries(future PRIVATE Vorbis::vorbisenc)

find_package(Opus)
target_link_libraries(future PRIVATE Opus::opus)
target_link_libraries(future PRIVATE ${OPUS_LIBRARY})

find_package(Opusenc)
target_link_libraries(future PRIVATE Opus::opusenc)
target_link_libraries(future PRIVATE ${Opusenc_LIBRARY})

elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
find_package(Ogg CONFIG REQUIRED)
target_link_libraries(future PRIVATE Ogg::ogg)

find_package(Opus)
target_link_libraries(future PRIVATE Opus::opus)
target_link_libraries(future PRIVATE ${OPUS_LIBRARY})

find_package(Opusenc)
target_link_libraries(future PRIVATE Opus::opusenc)
target_link_libraries(future PRIVATE ${Opusenc_LIBRARY})

find_package(Vorbis REQUIRED)
target_link_libraries(future PRIVATE Vorbis::vorbis)
target_link_libraries(future PRIVATE Vorbis::vorbisfile)
target_link_libraries(future PRIVATE Vorbis::vorbisenc)


endif()
Expand Down

0 comments on commit 2b691e9

Please sign in to comment.