summaryrefslogtreecommitdiff
path: root/x11-misc/sddm/files/sddm-0.20.0-respect-user-flags.patch
blob: daaf9f52dbcfa11c15f5153e483c157caa891ea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,7 +51,7 @@
     message(STATUS "Debug build")
     add_definitions(-DDEBUG)
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")
-else()
+elseif(CMAKE_BUILD_TYPE MATCHES Release)
     message(STATUS "Release build")
     add_definitions(-DNDEBUG)
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")