summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorgkostka <kostka.grzegorz@gmail.com>2014-05-20 21:34:12 +0000
committergkostka <kostka.grzegorz@gmail.com>2014-05-20 21:34:12 +0000
commitb6a7544b8c5b52b1d13f3b9c7c94cdabb6bf5ed1 (patch)
tree997cc5bca6125eae4cd60e66c46a4f1cca6a1677 /CMakeLists.txt
parent1f5edc9325fc4427ebf3de5a4b1a21e38e6cc211 (diff)
Pedanitic warning check fixes. Pointer arithmetic, anonymus unions etc
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 03d69f1..3068d0a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,7 @@ project(lwext4 C)
cmake_minimum_required(VERSION 2.8)
+
#LIBRARY
include_directories(. lwext4)
aux_source_directory(lwext4 LWEXT4_SRC)
@@ -20,6 +21,8 @@ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL bf518)
#Library size print
add_custom_target(lib_size ALL DEPENDS lwext4 COMMAND ${SIZE} -B liblwext4.a)
else()
+ #Warning setup
+ set_target_properties(lwext4 PROPERTIES COMPILE_FLAGS "-Wall -Wextra -pedantic -std=gnu99")
#Library size print
add_custom_target(lib_size ALL DEPENDS lwext4 COMMAND size -B liblwext4.a)
#Generic example target