Commit 3c177d01 authored by Matt Oliver's avatar Matt Oliver Committed by Ralph Giles
Browse files

Fix pkgconfig creation with cmake.



The cmake build script was not setting a VORBIS_LIBS variable
that is used to update pkg-config files. This results in linking
errors in downstream projects due to missing dependencies
(in this case libm).

This patch just updates the cmake script to behave the same
as configure does currently.
Signed-off-by: evpobr's avatarevpobr <evpobr@gmail.com>
parent 98eddc72
Pipeline #2233 passed with stage
in 1 minute and 43 seconds
......@@ -60,6 +60,9 @@ message(STATUS "Configuring ${PROJECT_NAME} ${PROJECT_VERSION}")
# Find math library
check_library_exists(m floor "" HAVE_LIBM)
if(HAVE_LIBM)
set(VORBIS_LIBS "-lm")
endif()
# Find ogg dependency
if(NOT TARGET Ogg::ogg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment