diff --git a/cmake/modules/FindOpusFile.cmake b/cmake/modules/FindOpusFile.cmake index 64b0c814ff..88139de084 100644 --- a/cmake/modules/FindOpusFile.cmake +++ b/cmake/modules/FindOpusFile.cmake @@ -26,7 +26,7 @@ set(OPUSFILE_INCLUDE_DIRS ${OPUS_INCLUDE_DIR} "${OPUS_INCLUDE_DIR}/opus") if(NOT OGG_INCLUDE_DIR STREQUAL OPUS_INCLUDE_DIR) list(APPEND OPUSFILE_INCLUDE_DIRS ${OGG_INCLUDE_DIR}) endif() -set(OPUSFILE_LIBRARIES ${OGG_LIBRARY} ${OPUS_opus_LIBRARY} ${OPUS_opusfile_LIBRARY}) +set(OPUSFILE_LIBRARIES ${OPUS_opusfile_LIBRARY} ${OPUS_opus_LIBRARY} ${OGG_LIBRARY}) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(OpusFile DEFAULT_MSG diff --git a/cmake/modules/FindVorbisFile.cmake b/cmake/modules/FindVorbisFile.cmake index 654219c3f7..efa16dd680 100644 --- a/cmake/modules/FindVorbisFile.cmake +++ b/cmake/modules/FindVorbisFile.cmake @@ -26,7 +26,7 @@ set(VORBISFILE_INCLUDE_DIRS ${VORBIS_INCLUDE_DIR}) if(NOT OGG_INCLUDE_DIR STREQUAL VORBIS_INCLUDE_DIR) list(APPEND VORBISFILE_INCLUDE_DIRS ${OGG_INCLUDE_DIR}) endif() -set(VORBISFILE_LIBRARIES ${OGG_LIBRARY} ${VORBIS_vorbis_LIBRARY} ${VORBIS_vorbisfile_LIBRARY}) +set(VORBISFILE_LIBRARIES ${VORBIS_vorbisfile_LIBRARY} ${VORBIS_vorbis_LIBRARY} ${OGG_LIBRARY}) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(VorbisFile DEFAULT_MSG