From 24d1e6862bae5743d2185de863237dd278beb12a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?ChangZhuo=20Chen=20=28=E9=99=B3=E6=98=8C=E5=80=AC=29?=
 <czchen@debian.org>
Date: Thu, 5 May 2016 23:29:15 +0800
Subject: Do not overwrite CMAKE_CXX_FLAGS family

---
 CMakeLists.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 42b4812..f4fbfc5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,9 +10,9 @@ SET( CMAKE_CXX_STANDARD_REQUIRED ON )
 IF(MSVC)
 ADD_DEFINITIONS(/D _CRT_SECURE_NO_WARNINGS)
 ELSE(MSVC)
-SET( CMAKE_CXX_FLAGS  "-O2 -Wno-unused-result" )
-SET( CMAKE_CXX_FLAGS_DEBUG  "-O2 -Wno-unused-result" )
-SET( CMAKE_CXX_FLAGS_RELEASE  "-O2 -Wno-unused-result" )
+SET( CMAKE_CXX_FLAGS  "-O2 -Wno-unused-result ${CMAKE_CXX_FLAGS}" )
+SET( CMAKE_CXX_FLAGS_DEBUG  "-O2 -Wno-unused-result ${CMAKE_CXX_FLAGS_DEBUG}" )
+SET( CMAKE_CXX_FLAGS_RELEASE  "-O2 -Wno-unused-result ${CMAKE_CXX_FLAGS_RELEASE}" )
 ENDIF(MSVC)
 
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmakefind/")
