Skip to content

Commit 51ac3e8

Browse files
committed
Upgrade libassert from v1.x to v2.1.4
1 parent 926a1c6 commit 51ac3e8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2015-2024 Morwenn
1+
# Copyright (c) 2015-2025 Morwenn
22
# SPDX-License-Identifier: MIT
33

44
cmake_minimum_required(VERSION 3.8.0)
@@ -24,7 +24,7 @@ if (CPPSORT_USE_LIBASSERT)
2424
include(DownloadProject)
2525
download_project(PROJ libassert
2626
GIT_REPOSITORY https://github.com/jeremy-rifkin/libassert
27-
GIT_TAG v1.2.2
27+
GIT_TAG 634f50fb4086d377ad9a2f83d693d2e8fe4972a7 # v2.1.4
2828
UPDATE_DISCONNECTED 1
2929
)
3030
add_subdirectory(${libassert_SOURCE_DIR} ${libassert_BINARY_DIR})
@@ -57,7 +57,7 @@ endif()
5757

5858
# Optionally link to libassert
5959
if (CPPSORT_USE_LIBASSERT)
60-
target_link_libraries(cpp-sort INTERFACE assert)
60+
target_link_libraries(cpp-sort INTERFACE libassert::assert)
6161
target_compile_definitions(cpp-sort INTERFACE CPPSORT_USE_LIBASSERT)
6262
endif()
6363

include/cpp-sort/detail/config.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016-2023 Morwenn
2+
* Copyright (c) 2016-2025 Morwenn
33
* SPDX-License-Identifier: MIT
44
*/
55
#ifndef CPPSORT_DETAIL_CONFIG_H_
@@ -69,7 +69,7 @@
6969
#if defined(CPPSORT_ENABLE_ASSERTIONS)
7070
# include <cassert>
7171
# if defined(CPPSORT_USE_LIBASSERT)
72-
# include <assert.hpp>
72+
# include <libassert/assert.hpp>
7373
# endif
7474
#endif
7575

0 commit comments

Comments
 (0)