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
This commit is contained in:
parent
7414e98008
commit
a67b824e25
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user