projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add optional flag for disabling compiler optimization (debug only)
[project/netifd.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 4ef4dfaa75045db305c79aeb56dcb615a7bc609f..74cb080582a1c496c50b0b96677a634313875f8b 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-35,6
+35,9
@@
ENDIF()
IF(DEBUG)
ADD_DEFINITIONS(-DDEBUG -g3)
+ IF(NO_OPTIMIZE)
+ ADD_DEFINITIONS(-O0)
+ ENDIF()
ENDIF()