Skip to content

Commit

Permalink
fix for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
louist103 committed Dec 21, 2024
1 parent cfa2a5d commit d5a7adf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,19 @@ target_link_libraries(future PRIVATE Vorbis::vorbisenc)

find_package(Opus)
target_link_libraries(future PRIVATE ${OPUS_LIBRARY})
target_include_directories(future PRIVATE ${OPUS_INCLUDE_DIR})


find_package(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_LIBRARY})
find_package(Opus CONFIG REQUIRED)
target_link_libraries(future PRIVATE Opus::opus)

find_package(Opusenc)
target_link_libraries(future PRIVATE ${Opusenc_LIBRARY})
Expand All @@ -169,7 +172,6 @@ target_link_libraries(future PRIVATE Vorbis::vorbisenc)

endif()

target_include_directories(future PRIVATE ${OPUS_INCLUDE_DIR})

if(CMAKE_SYSTEM_NAME MATCHES "Linux")
set(CPACK_GENERATOR "External")
Expand Down

0 comments on commit d5a7adf

Please sign in to comment.