From 4c9c9dde85691ab64b099714ca1446243704915c Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Mon, 15 Jul 2013 23:23:11 +0000 Subject: [PATCH] Change the default build type to MinSizeRel. This changes the output size of the executable from 52K to 32K for GCC 4.6.3. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 36e1a72..a9d2c3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ endif(COMMAND cmake_policy) project( tmux-mem-cpu-load ) if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Release CACHE STRING + set(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE) endif(NOT CMAKE_BUILD_TYPE)