Bunch of fixes
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 4 Feb 2008 21:09:06 +0000 (21:09 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 4 Feb 2008 21:09:06 +0000 (21:09 +0000)
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt

index 708d791..a53aa4a 100644 (file)
@@ -134,7 +134,8 @@ endif(SYS_DARWIN)
 
 add_library(libvlc SHARED ${SOURCES_libvlc})
 install_targets(/lib libvlc)
-
+set_target_properties(libvlc PROPERTIES LINK_FLAGS "${LIBICONV}")
+set_target_properties(libvlc PROPERTIES SOVERSION 1.0.0)
 
 # libvlc-control
 set( SOURCES_libvlc_control
@@ -191,7 +192,7 @@ OUTPUT ${rev}
 COMMAND        rm -f ${rev} ${rev}.tmp
 COMMAND        echo "/* AUTOGENERATED FILE - DO NOT EDIT */" > ${rev}.tmp
 COMMAND        printf "const char psz_vlc_changeset[] = \"" >> ${rev}.tmp
-COMMAND        sh -c "echo `LANG=C\ svnversion\ ${CMAKE_SOURCE_DIR}\ ||\ echo\ exported`" >> ${rev}.tmp
+COMMAND        sh -c "printf `LANG=C\ svnversion\ ${CMAKE_SOURCE_DIR}\ ||\ echo\ exported`" >> ${rev}.tmp
 COMMAND        echo "\";" >> ${rev}.tmp
 COMMAND        mv -f ${rev}.tmp ${rev}
 VERBATIM
@@ -239,5 +240,6 @@ set(about)
 ##########################################################
 # SET_TARGET_PROPERTIES
 
+set_target_properties(libvlc libvlc-control PROPERTIES PREFIX "")
 set_target_properties(libvlc libvlc-control vlc PROPERTIES COMPILE_FLAGS
     "-Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes" )