Define DATA_PATH in the root CMakeList.txt since modules might need it (for example...
authorAntoine Cellerier <dionoea@videolan.org>
Thu, 7 Feb 2008 21:58:57 +0000 (21:58 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Thu, 7 Feb 2008 21:58:57 +0000 (21:58 +0000)
extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt
extras/buildsystem/cmake/CMakeLists/src_CMakeLists.txt

index 2849ca6..a6bda8b 100644 (file)
@@ -14,6 +14,7 @@ include( config )
 # Global definitions
 add_definitions(-DHAVE_CONFIG_H)
 add_definitions(-D__LIBVLC__)
+add_definitions(-DDATA_PATH=\\"${CMAKE_INSTALL_PREFIX}/share/vlc\\")
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
 set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
index 055161c..6bd7a61 100644 (file)
@@ -2,7 +2,6 @@ include_directories( . )
 
 add_definitions(-Dasm=__asm__ -D_INTL_REDIRECT_MACROS)
 add_definitions(-DLOCALEDIR=\\"${CMAKE_INSTALL_PREFIX}/locale\\")
-add_definitions(-DDATA_PATH=\\"${CMAKE_INSTALL_PREFIX}/share/vlc\\")
 add_definitions(-DPLUGIN_PATH=\\"${CMAKE_INSTALL_PREFIX}/lib/vlc\\")
 
 # vlc