From 95292067d9c03e23ad84e2ae8500874ca13d0d53 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Sun, 15 Nov 2015 14:56:42 +0100 Subject: [PATCH] Default CMAKE_BUILD_TYPE to RelWithDebInfo. We need compiler optimizations for the heaptrack code, as it is otherwise really slow to run. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 98be187..036385d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 2.8.9) project(heaptrack) enable_testing() +if(NOT CMAKE_BUILD_TYPE) + message(STATUS "Setting build type to 'RelWithDebInfo' as none was specified.") + set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Choose the type of build." FORCE) +endif() + set(HEAPTRACK_VERSION_MAJOR 0) set(HEAPTRACK_VERSION_MINOR 1) set(HEAPTRACK_VERSION_PATCH 0) -- 2.7.4