Skip to content

Commit

Permalink
Check for -lm
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Feb 5, 2008
1 parent 6b9d2d1 commit 5b9a4e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ if(APPLE)
target_link_libraries(libvlc ${CARBON_FRAMEWORK})
endif(APPLE)

target_link_libraries(libvlc ${Dlopen_LIBRARY})

##########################################################
# revision.c

Expand Down Expand Up @@ -245,6 +243,7 @@ if(NOT APPLE)
endif(NOT APPLE)

target_link_libraries(libvlc ${LIBRT} ${LIBICONV} ${Dlopen_LIBRARIES})
target_link_libraries(libvlc ${LIBM})

set_target_properties(libvlc PROPERTIES SOVERSION 1.0.0)
set_target_properties(libvlc libvlc-control PROPERTIES PREFIX "")
Expand Down
5 changes: 5 additions & 0 deletions extras/buildsystem/cmake/include/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ if (HAVE_CLOCK_NANOSLEEP)
set(LIBRT "rt")
endif (HAVE_CLOCK_NANOSLEEP)

check_library_exists(m pow "" HAVE_LIBM)
if (HAVE_LIBM)
set (LIBM "m")
endif (HAVE_LIBM)

###########################################################
# Other check
###########################################################
Expand Down

0 comments on commit 5b9a4e9

Please sign in to comment.