]> git.sesse.net Git - vlc/commitdiff
Check for -lm
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 5 Feb 2008 16:01:30 +0000 (16:01 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 5 Feb 2008 16:01:30 +0000 (16:01 +0000)
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt
extras/buildsystem/cmake/include/config.cmake

index e637ee71f9d66d6500c65a7025dbe5a2cc006ebb..4d675d0736d2b66a8ca1a92d131336ea618199d0 100644 (file)
@@ -179,8 +179,6 @@ if(APPLE)
   target_link_libraries(libvlc ${CARBON_FRAMEWORK})
 endif(APPLE)
 
-target_link_libraries(libvlc ${Dlopen_LIBRARY})
-
 ##########################################################
 # revision.c
 
@@ -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 "")
index 1a9ec0e966dac94f97b9d50881c2ef6f03dd0c16..b53b7caf01c6443d18e2bd1fbbd1b3f54acc0db8 100644 (file)
@@ -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
 ###########################################################