Remove DEBUG build option upstream_wayland
authorBen Davis <ben.davis@arm.com>
Fri, 10 Dec 2021 11:13:08 +0000 (11:13 +0000)
committerBen Davis <ben.davis@arm.com>
Wed, 15 Dec 2021 09:35:50 +0000 (09:35 +0000)
Users should use CMAKE_BUILD_TYPE to set the build type

Change-Id: I526b3a96f798a39ceca11674bf1e0b6964a3da7d
Signed-off-by: Ben Davis <ben.davis@arm.com>
CMakeLists.txt

index 0001933..ebf9ebf 100644 (file)
@@ -34,10 +34,6 @@ if (NOT CLANG_TIDY STREQUAL "CLANG_TIDY-NOTFOUND")
 endif()
 
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pthread -fPIC")
-if (DEFINED DEBUG)
-   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")
-   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0")
-endif()
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
 set(CMAKE_CXX_STANDARD 11)