cmake: Use -std=gnu99 instead of -std=c99 and link libvlc-control to libvlc.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 4 Feb 2008 15:20:33 +0000 (15:20 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Mon, 4 Feb 2008 15:20:33 +0000 (15:20 +0000)
extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt

index f18ead1..0690081 100644 (file)
@@ -8,7 +8,7 @@ include( ${CMAKE_SOURCE_DIR}/cmake/config.cmake )
 
 add_definitions(-DHAVE_CONFIG_H)
 add_definitions(-D__LIBVLC__)
 
 add_definitions(-DHAVE_CONFIG_H)
 add_definitions(-D__LIBVLC__)
-add_definitions(-I. -std=c99)
+add_definitions(-I. -std=gnu99)
 
 include_directories(${CMAKE_SOURCE_DIR}/include)
 
 
 include_directories(${CMAKE_SOURCE_DIR}/include)
 
index cedd503..006e01d 100644 (file)
@@ -161,6 +161,7 @@ set( SOURCES_libvlc_control
 
 add_library(libvlc-control SHARED ${SOURCES_libvlc_control})
 install_targets(/lib libvlc-control)
 
 add_library(libvlc-control SHARED ${SOURCES_libvlc_control})
 install_targets(/lib libvlc-control)
+target_link_libraries(libvlc-control libvlc)
 
 ##########################################################
 # Libraries
 
 ##########################################################
 # Libraries