Skip to content

Commit 0b8da3a

Browse files
russelltgrillian
authored andcommitted
Fix CMake error
Include vorbis library when linking vorbisfile and vorbisenc. Signed-off-by: Ralph Giles <[email protected]>
1 parent 39efc81 commit 0b8da3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ if (NOT BUILD_FRAMEWORK)
8080
set_target_properties(vorbisfile PROPERTIES SOVERSION ${VORBISFILE_VERSION_INFO})
8181

8282
target_link_libraries(vorbis ${OGG_LIBRARIES})
83-
target_link_libraries(vorbisenc ${OGG_LIBRARIES})
84-
target_link_libraries(vorbisfile ${OGG_LIBRARIES})
83+
target_link_libraries(vorbisenc ${OGG_LIBRARIES} vorbis)
84+
target_link_libraries(vorbisfile ${OGG_LIBRARIES} vorbis)
8585

8686
install(FILES ${VORBIS_PUBLIC_HEADERS} DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR}/vorbis)
8787

0 commit comments

Comments
 (0)