fix libvlc linking when UPDATE_CHECK is on
authorRafaël Carré <funman@videolan.org>
Sun, 9 Mar 2008 15:22:46 +0000 (16:22 +0100)
committerRafaël Carré <funman@videolan.org>
Sun, 9 Mar 2008 15:22:46 +0000 (16:22 +0100)
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt

index 420ae41..0739a32 100644 (file)
@@ -136,8 +136,11 @@ set_target_properties(libvlc PROPERTIES
         OUTPUT_NAME vlc
         SOVERSION 1 VERSION 1.0.0)
 
+if(UPDATE_CHECK)
+target_link_libraries(libvlc ${LIBM} ${LIBRT} ${LIBICONV} ${Dlopen_LIBRARIES} "-lgcrypt")
+else(UPDATE_CHECK)
 target_link_libraries(libvlc ${LIBM} ${LIBRT} ${LIBICONV} ${Dlopen_LIBRARIES})
-
+endif(UPDATE_CHECK)
 
 # libvlc-control
 set( SOURCES_libvlc_control