diff --git a/CMakeLists.txt b/CMakeLists.txt index b0e5db1..1aa6ce4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ set(ECHOION_COMPONENT_VERSION "${PROJECT_VERSION}") # compiled with the same optimisation level as Echoion itself. get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) if(NOT _isMultiConfig AND NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE) + set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Build type" FORCE) set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS Debug Release RelWithDebInfo MinSizeRel) message(STATUS "No CMAKE_BUILD_TYPE set; defaulting to Release") diff --git a/CMakePresets.json b/CMakePresets.json index 70ed82e..d7ffca7 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -35,14 +35,14 @@ { "name": "linux-release", "configurePreset": "linux-release", - "configuration": "Release" + "configuration": "RelWithDebInfo" } ], "testPresets": [ { "name": "linux-release", "configurePreset": "linux-release", - "configuration": "Release", + "configuration": "RelWithDebInfo", "output": { "outputOnFailure": true }, diff --git a/scripts/release-component.sh b/scripts/release-component.sh index ce5b86d..cb390c8 100755 --- a/scripts/release-component.sh +++ b/scripts/release-component.sh @@ -246,7 +246,7 @@ cmake_arguments=( -S "$source_root" -B "$build" -G Ninja - -DCMAKE_BUILD_TYPE=Release + -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX="$install_root" -DECHOION_COMPONENT_VERSION="$component_version" -DECHOION_PRODUCT_VERSION="$product_version"