Skip to content

Commit a74fdf7

Browse files
committed
Fixed bug in CMakelists.txt which would always force build to Release
1 parent b576b92 commit a74fdf7

File tree

5 files changed

+14
-24
lines changed

5 files changed

+14
-24
lines changed

CHANGELOG

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file.
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6+
7+
## [0.8.3] - 2024-12-22
8+
9+
### Changed
10+
11+
- Fixed bug in CMakelists.txt which would always force build to Release
12+
613
## [0.8.2] - 2024-12-22
714

815
### Changed

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.18)
55
#
66
project(
77
etl
8-
VERSION 0.8.2
8+
VERSION 0.8.3
99
DESCRIPTION "C++ Extra Template Library"
1010
HOMEPAGE_URL "https://github.com/thebashpotato/extra-template-library"
1111
LANGUAGES CXX)
@@ -98,10 +98,6 @@ if(ETL_DEV_MODE)
9898
message(WARNING "gtest was not configured properly")
9999
endif()
100100
enable_testing()
101-
else()
102-
set(CMAKE_BUILD_TYPE
103-
Release
104-
CACHE STRING "Forcing build type to release" FORCE)
105101
endif()
106102

107103
#

README.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ make uninstall
205205
### Find Package (assuming it has been installed globally on your system)
206206

207207
```cmake
208-
find_package(etl 0.8.0 REQUIRED)
208+
find_package(etl 0.8.3 REQUIRED)
209209
210210
# Your Application linking cmake code
211211
target_link_libraries(
@@ -218,20 +218,7 @@ target_link_libraries(
218218
Please check out how to use [CPM](https://github.com/cpm-cmake/CPM.cmake) it is dead simple.
219219

220220
```cmake
221-
cpmaddpackage(
222-
NAME
223-
etl
224-
GITHUB_REPOSITORY
225-
thebashpotato/etl
226-
VERSION
227-
0.8.0)
228-
229-
if(etl_ADDED)
230-
message(STATUS "Extra Template Library added")
231-
add_library(etl::etl INTERFACE IMPORTED)
232-
target_include_directories(etl::etl INTERFACE ${etl_SOURCE_DIR}/etl/include)
233-
endif()
234-
221+
cpmaddpackage("gh:thebashpotato/etl#v0.8.3")
235222
236223
# Your Application linking cmake code
237224
target_link_libraries(

etl/include/etl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ namespace etl
4242

4343
constexpr auto VERSION_MAJOR = 0;
4444
constexpr auto VERSION_MINOR = 8;
45-
constexpr auto VERSION_PATCH = 2;
45+
constexpr auto VERSION_PATCH = 3;
4646
constexpr auto VERSION = (VERSION_MAJOR * 10000) + (VERSION_MINOR * 100) + VERSION_PATCH;
47-
constexpr std::string_view VERSION_STRING = "0.8.2";
47+
constexpr std::string_view VERSION_STRING = "0.8.3";
4848

4949
/// @brief Ditch those old C style for loops and iterate over your enums safely with ranged for loops.
5050
///

etl/tests/version_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
TEST(EtlVersionTests, EnsureVersionStringIsCorrect)
55
{
6-
ASSERT_EQ(etl::VERSION_STRING, "0.8.2");
6+
ASSERT_EQ(etl::VERSION_STRING, "0.8.3");
77
}
88

99
TEST(EtlVersionTests, EnsureVersionIntIsCorrect)
1010
{
1111
ASSERT_EQ(etl::VERSION_MAJOR, 0);
1212
ASSERT_EQ(etl::VERSION_MINOR, 8);
13-
ASSERT_EQ(etl::VERSION_PATCH, 2);
13+
ASSERT_EQ(etl::VERSION_PATCH, 3);
1414
}

0 commit comments

Comments
 (0)