From bc570313c8fc66f93d1d66a0def7c41b93df21a3 Mon Sep 17 00:00:00 2001 From: Rasim Labibov Date: Tue, 31 Oct 2017 15:57:24 +0200 Subject: [PATCH] Removed handling of Debug build in CMake projects. --- CMakeLists.txt | 5 ----- src/CMakeLists.txt | 5 ----- 2 files changed, 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e6fc05..07c7f0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,5 @@ cmake_minimum_required(VERSION 2.8) -# Common project properties -if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILT_TYPE Debug CACHE STRING "Choose the type of build, options are: Debug Release" FORCE) -endif() - # 3rd party tools find_package(Qt5 COMPONENTS Widgets Qml Quick REQUIRED) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index af8e10e..e1d933b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -10,10 +10,6 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) -if(CMAKE_BUILD_TYPE MATCHES Debug) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG") -endif() - set(PROJECT "MinimalQml") @@ -32,7 +28,6 @@ endif() source_group("Header Files" FILES ${HEADERS}) source_group("Source Files" FILES ${SOURCES}) - add_executable(${PROJECT} ${HEADERS} ${SOURCES} ${QT_RESOURCES}) target_link_libraries(${PROJECT}