diff --git a/CMakeLists.txt b/CMakeLists.txt index a0551f92b..15d8eb3e5 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 4eca31177..7923007fb 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