cmake: Don't set gnu99 on CXX files.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 5 Feb 2008 17:46:03 +0000 (17:46 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 5 Feb 2008 17:46:03 +0000 (17:46 +0000)
extras/buildsystem/cmake/CMakeLists/root_CMakeLists.txt

index 215dddd..c8881eb 100644 (file)
@@ -9,9 +9,11 @@ include( vlc_module_funcs )
 # Our config
 include( config )
 
+# Global definitions
 add_definitions(-DHAVE_CONFIG_H)
 add_definitions(-D__LIBVLC__)
-add_definitions(-I. -std=gnu99)
+add_definitions(-I.)
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99")
 
 # Needed for glibc:
 add_definitions(-D_GNU_SOURCE)