cmake: reset cflags

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-19 23:18:10 +02:00
parent 13cd35f6ba
commit 0a6927a862
2 changed files with 6 additions and 25 deletions

View File

@ -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)

View File

@ -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