From 75ac59f48a6660fd6620992a9e97c37e20991a2a Mon Sep 17 00:00:00 2001 From: belliash Date: Wed, 28 Dec 2022 17:15:21 +0100 Subject: [PATCH] Fix DEBUG/RELEASE building options --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f6b48ae..e64a379 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,14 +24,14 @@ if(NOT BUILD_TYPE) set(BUILD_TYPE DEBUG) endif() string(TOUPPER ${BUILD_TYPE} BUILD_TYPE) -set(CMAKE_BUILD_TYPE "") # Set build type specific definitions if(BUILD_TYPE STREQUAL "DEBUG") add_definitions(-DDBG=1) + set(CMAKE_BUILD_TYPE DEBUG) else() set(BUILD_TYPE RELEASE) - add_definitions(-DDBG=0) + set(CMAKE_BUILD_TYPE NONE) endif() # Print build type