Include vorbis library when linking vorbisfile and vorbisenc.
Signed-off-by: Ralph Giles <giles@thaumas.net>
set_target_properties(vorbisfile PROPERTIES SOVERSION ${VORBISFILE_VERSION_INFO})
target_link_libraries(vorbis ${OGG_LIBRARIES})
- target_link_libraries(vorbisenc ${OGG_LIBRARIES})
- target_link_libraries(vorbisfile ${OGG_LIBRARIES})
+ target_link_libraries(vorbisenc ${OGG_LIBRARIES} vorbis)
+ target_link_libraries(vorbisfile ${OGG_LIBRARIES} vorbis)
install(FILES ${VORBIS_PUBLIC_HEADERS} DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR}/vorbis)