projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c12ee7
)
cmake: disable optimizations in debug builds
author
Antonio Ospite <ospite@studenti.unina.it>
Mon, 19 Mar 2012 21:07:16 +0000
(22:07 +0100)
committer
Antonio Ospite <ospite@studenti.unina.it>
Mon, 19 Mar 2012 21:07:16 +0000
(22:07 +0100)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
aba2d43
..
9950111
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-34,7
+34,7
@@
if (CMAKE_COMPILER_IS_GNUCC)
# let CFLAGS env override this
if(CMAKE_C_FLAGS STREQUAL "")
# let CFLAGS env override this
if(CMAKE_C_FLAGS STREQUAL "")
- set(CMAKE_C_FLAGS "-std=c99 -pedantic -Wall -Wextra
-O2
")
+ set(CMAKE_C_FLAGS "-std=c99 -pedantic -Wall -Wextra")
endif()
# Don't make pedantic checks errors,
endif()
# Don't make pedantic checks errors,
@@
-74,7
+74,7
@@
if (CMAKE_COMPILER_IS_GNUCC)
--param=ssp-buffer-size=4)
endif()
--param=ssp-buffer-size=4)
endif()
-set(CMAKE_C_FLAGS_DEBUG "-
g
-DDEBUG=1 -Werror")
+set(CMAKE_C_FLAGS_DEBUG "-
O0 -ggdb
-DDEBUG=1 -Werror")
set(CMAKE_C_FLAGS_RELEASE "-O2")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")
set(CMAKE_C_FLAGS_RELEASE "-O2")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g")