3d30ca8
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
3d30ca8
index ae9ae09..5831e7a 100644
3d30ca8
--- a/src/CMakeLists.txt
3d30ca8
+++ b/src/CMakeLists.txt
3d30ca8
@@ -1,13 +1,11 @@
3d30ca8
 IF (WIN32)
3d30ca8
   ADD_DEFINITIONS (-D_CRT_SECURE_NO_WARNINGS)
3d30ca8
 ELSE (WIN32)
3d30ca8
-  SET (CMAKE_CXX_FLAGS "-Wall -fno-strict-aliasing")
3d30ca8
+  SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fno-strict-aliasing")
3d30ca8
 
3d30ca8
   OPTION (APVLV_ENABLE_DEBUG "If build binary with debug infomations." OFF)
3d30ca8
   IF (APVLV_ENABLE_DEBUG)
3d30ca8
-    SET (CMAKE_CXX_FLAGS "-D_DEBUG -g ${CMAKE_CXX_FLAGS}")
3d30ca8
-  ELSE (APVLV_ENABLE_DEBUG)
3d30ca8
-    SET (CMAKE_CXX_FLAGS "-O2 ${CMAKE_CXX_FLAGS}")
3d30ca8
+    SET (CMAKE_CXX_FLAGS "-D_DEBUG ${CMAKE_CXX_FLAGS}")
3d30ca8
   ENDIF (APVLV_ENABLE_DEBUG)
3d30ca8
 ENDIF (WIN32)
3d30ca8