link lm publicly to FLAC

This commit is contained in:
ericLemanissier 2020-03-04 11:22:02 +01:00 committed by Erik de Castro Lopo
parent cffe3890c7
commit 1d5299d67b
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ endif()
target_include_directories(FLAC INTERFACE
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
target_link_libraries(FLAC PRIVATE $<$<BOOL:${HAVE_LROUND}>:m>)
target_link_libraries(FLAC PUBLIC $<$<BOOL:${HAVE_LROUND}>:m>)
if(TARGET Ogg::ogg)
target_link_libraries(FLAC PUBLIC Ogg::ogg)
endif()