From a67b824e252f29ba533dcf9f196652fc0820233c Mon Sep 17 00:00:00 2001
From: patrick96
Date: Sun, 23 Dec 2018 22:38:05 +0100
Subject: [PATCH] cmake: Make Release default build type
The polybar executable with RelWithDebInfo gets over 100MB. And there
really isn't any reason to have users install such huge executables.
Release build type gives you approx. 3.6M executables
Fixes #1497
---
cmake/01-core.cmake | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmake/01-core.cmake b/cmake/01-core.cmake
index 973c4b7d..87985f44 100644
--- a/cmake/01-core.cmake
+++ b/cmake/01-core.cmake
@@ -13,8 +13,8 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Set default build type if not specified
if(NOT CMAKE_BUILD_TYPE)
- message_colored(STATUS "No build type specified; using RelWithDebInfo" 33)
- set(CMAKE_BUILD_TYPE "RelWithDebInfo")
+ set(CMAKE_BUILD_TYPE "Release")
+ message_colored(STATUS "No build type specified; using ${CMAKE_BUILD_TYPE}" 33)
endif()
string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_UPPER)