From: TimePath Date: Sat, 29 Jul 2017 11:48:57 +0000 (+1000) Subject: Remove attempt to default CMAKE_BUILD_TYPE, it does not work correctly X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=87520e8a7dc01698e70687a5a813a9bf65ff7310;p=xonotic%2Fnetradiant.git Remove attempt to default CMAKE_BUILD_TYPE, it does not work correctly --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 626e15da..6abed33c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,5 @@ cmake_minimum_required(VERSION 2.8.11 FATAL_ERROR) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") -# Enable Debug by default, can be changed with -DCMAKE_BUILD_TYPE=Release -if (NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Debug) -endif () project(NetRadiant C CXX) option(BUILD_RADIANT "Build the gui" ON) @@ -75,7 +71,7 @@ add_definitions(-DRADIANT_MINOR_VERSION="${NetRadiant_VERSION_MINOR}") add_definitions(-DRADIANT_ABOUTMSG="${NetRadiant_ABOUT}") -if (CMAKE_BUILD_TYPE MATCHES Debug) +if (NOT CMAKE_BUILD_TYPE MATCHES Release) add_definitions(-D_DEBUG=1) endif ()