From 6a82ca879a503ac6428f98aabef03b2552c1ed30 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Tue, 16 May 2023 04:37:57 +0300 Subject: CMake: Remove the auto-"Release" This makes a pain to package managers who needs to specify an own set of optimisations using CMAKE_BUILD_TYPE=None way. --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fee23ff..eeedcc8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,10 +101,6 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR CMAKE_C_COMPILER_ID ST set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++98") endif() -if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE "Release") -endif() - # Disable bogus MSVC warnings if(MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS) -- cgit v1.2.3