]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Remove attempt to default CMAKE_BUILD_TYPE, it does not work correctly
authorTimePath <andrew.hardaker1995@gmail.com>
Sat, 29 Jul 2017 11:48:57 +0000 (21:48 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sat, 29 Jul 2017 11:48:57 +0000 (21:48 +1000)
CMakeLists.txt

index 626e15da7b6cc252492ad906a933d9325a8345b0..6abed33cbb4a8c1367753bfdeb0f2afccbdd1f19 100644 (file)
@@ -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 ()