Skip to content

Commit 3c177d0

Browse files
Sibrasrillian
authored andcommitted
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 <[email protected]>
1 parent 98eddc7 commit 3c177d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ message(STATUS "Configuring ${PROJECT_NAME} ${PROJECT_VERSION}")
6060
# Find math library
6161

6262
check_library_exists(m floor "" HAVE_LIBM)
63+
if(HAVE_LIBM)
64+
set(VORBIS_LIBS "-lm")
65+
endif()
6366

6467
# Find ogg dependency
6568
if(NOT TARGET Ogg::ogg)

0 commit comments

Comments
 (0)