From: =?utf-8?b?IkNoYW5nWmh1byBDaGVuICjpmbPmmIzlgKwpIg==?=
 <czchen@debian.org>
Date: Wed, 14 Sep 2022 21:10:20 +0800
Subject: do not overwrite CMAKE_CXX_FLAGS family

---
 CMakeLists.txt | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4550249..4b2bb4b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,9 +36,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)
