Skip to content

Commit

Permalink
fix: don't require vorbis config and fix linking
Browse files Browse the repository at this point in the history
  • Loading branch information
surfaceflinger authored Oct 13, 2024
1 parent f6c5789 commit 7cd3c82
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ endif()
if(TOGGLE_FRAMEWORK_SOUND)
find_package(OpenAL CONFIG REQUIRED)
find_package(VorbisFile REQUIRED)
find_package(Vorbis CONFIG REQUIRED)
find_package(Vorbis REQUIRED)
find_package(Ogg CONFIG REQUIRED)
endif()
if(ANDROID)
Expand Down Expand Up @@ -471,9 +471,9 @@ if(MSVC)
${OPENGL_LIBRARIES}
${DirectX_LIBRARY}
${DirectX_LIBRARIES}
${OGG_LIBRARY}
${VORBISFILE_LIBRARY}
${VORBIS_LIBRARY}
${OGG_LIBRARY}
${GMP_LIBRARY}
${OPENSSL_LIBRARIES}
${DBGHELP_LIBRARY}
Expand Down Expand Up @@ -512,6 +512,8 @@ elseif(ANDROID)
${NLOHMANN_JSON_LIBRARY}
${EGL_LIBRARY}
${OGG_LIBRARY}
${VORBISFILE_LIBRARY}
${VORBIS_LIBRARY}
${GMP_LIBRARY}
${OpenAL_LIBRARY}
${OPENSSL_LIBRARIES}
Expand All @@ -521,8 +523,6 @@ elseif(ANDROID)
Threads::Threads
asio::asio
OpenSLES
Vorbis::vorbis
Vorbis::vorbisfile
LibLZMA::LibLZMA
game-activity::game-activity
GLESv3
Expand Down Expand Up @@ -556,6 +556,8 @@ else() # Linux
${DirectX_LIBRARY}
${DirectX_LIBRARIES}
${OGG_LIBRARY}
${VORBISFILE_LIBRARY}
${VORBIS_LIBRARY}
${GMP_LIBRARY}
${STDUUID}
${FOUNDATION}
Expand All @@ -568,8 +570,6 @@ else() # Linux
X11::X11
asio::asio
OpenAL::OpenAL
Vorbis::vorbis
Vorbis::vorbisfile
LibLZMA::LibLZMA
pugixml::pugixml
ZLIB::ZLIB
Expand Down

0 comments on commit 7cd3c82

Please sign in to comment.