From 0a6927a862ab4a60aa971dd2154c3d5c8fbb8dd4 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 19 Jun 2008 23:18:10 +0200 Subject: [PATCH] cmake: reset cflags Signed-off-by: Julien Danjou --- CMakeLists.txt | 25 ------------------------- awesomeConfig.cmake | 6 ++++++ 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a0551f92..15d8eb3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,31 +8,6 @@ INCLUDE(awesomeConfig.cmake) INCLUDE_DIRECTORIES(${AWE_INC_DIR}) -# C flags {{{ -# big debug flags -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -ggdb3") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-strict-aliasing") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wchar-subscripts") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wundef") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wshadow") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wcast-align") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wwrite-strings") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wsign-compare") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wuninitialized") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Winit-self") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wpointer-arith") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wredundant-decls") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-nonliteral") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-format-zero-length") -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-prototypes") -#SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute") -# }}} - SET(AWE_LUA_FILES ${CMAKE_CURRENT_SOURCE_DIR}/lib/tabulous.lua ${CMAKE_CURRENT_SOURCE_DIR}/lib/awful.lua) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 4eca3117..7923007f 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -9,6 +9,12 @@ PROJECT(${PROJECT_AWE_NAME}) SET(CMAKE_BUILD_TYPE RELEASE) +ADD_DEFINITIONS(-std=gnu99 -ggdb3 -fno-strict-aliasing -Wall -Wextra + -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings + -Wsign-compare -Wunused -Wno-unused-parameter -Wuninitialized -Winit-self + -Wpointer-arith -Wredundant-decls -Wformat-nonliteral + -Wno-format-zero-length) + # If this is a git repository... IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.git/HEAD) # ...update version