Skip to content

Commit 9976e1f

Browse files
authored
Merge pull request #236 from Morwenn/1.x.y-develop
Release 1.17.2
2 parents 37dc6ad + 0f7d46e commit 9976e1f

File tree

16 files changed

+78
-39
lines changed

16 files changed

+78
-39
lines changed

.github/workflows/build-macos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2021-2025 Morwenn
1+
# Copyright (c) 2021-2026 Morwenn
22
# SPDX-License-Identifier: MIT
33

44
name: MacOS Builds
@@ -23,14 +23,14 @@ on:
2323

2424
jobs:
2525
build:
26-
runs-on: macos-13
26+
runs-on: macos-14
2727

2828
strategy:
2929
fail-fast: false
3030
matrix:
3131
config:
3232
# Release build
33-
- cxx: g++-12
33+
- cxx: g++-13
3434
build_type: Release
3535
- cxx: clang++
3636
build_type: Release
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) 2025 Morwenn
2+
# SPDX-License-Identifier: MIT
3+
4+
name: Mirror Commits to Codeberg
5+
6+
on: [push, workflow_dispatch]
7+
8+
jobs:
9+
mirror-to-codeberg:
10+
name: Mirror to Codeberg
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v5
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Mirror
21+
uses: yesolutions/[email protected]
22+
with:
23+
REMOTE: 'https://codeberg.org/Morwenn/cpp-sort.git'
24+
GIT_USERNAME: Morwenn
25+
GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# Copyright (c) 2015-2025 Morwenn
1+
# Copyright (c) 2015-2026 Morwenn
22
# SPDX-License-Identifier: MIT
33

44
cmake_minimum_required(VERSION 3.8.0)
55

66
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
77

8-
project(cpp-sort VERSION 1.17.1 LANGUAGES CXX)
8+
project(cpp-sort VERSION 1.17.2 LANGUAGES CXX)
99

1010
include(CMakePackageConfigHelpers)
11+
include(cpp-sort-utils)
1112
include(GNUInstallDirs)
1213

1314
# Project options
@@ -28,6 +29,7 @@ if (CPPSORT_USE_LIBASSERT)
2829
UPDATE_DISCONNECTED 1
2930
)
3031
add_subdirectory(${libassert_SOURCE_DIR} ${libassert_BINARY_DIR})
32+
mark_system_library(libassert-lib)
3133
endif()
3234

3335
# Create cpp-sort library and configure it

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![cpp-sort logo](docs/images/cpp-sort-logo.svg)
22

3-
[![Latest Release](https://img.shields.io/badge/release-1.17.1-blue.svg)](https://github.com/Morwenn/cpp-sort/releases/tag/1.17.1)
4-
[![Conan Package](https://img.shields.io/badge/conan-cpp--sort%2F1.17.1-blue.svg)](https://conan.io/center/recipes/cpp-sort?version=1.17.1)
3+
[![Latest Release](https://img.shields.io/badge/release-1.17.2-blue.svg)](https://github.com/Morwenn/cpp-sort/releases/tag/1.17.2)
4+
[![Conan Package](https://img.shields.io/badge/conan-cpp--sort%2F1.17.2-blue.svg)](https://conan.io/center/recipes/cpp-sort?version=1.17.2)
55
[![Code Coverage](https://codecov.io/gh/Morwenn/cpp-sort/branch/develop/graph/badge.svg)](https://codecov.io/gh/Morwenn/cpp-sort)
66
[![Pitchfork Layout](https://img.shields.io/badge/standard-PFL-orange.svg)](https://github.com/vector-of-bool/pitchfork)
77

benchmarks/errorbar-plot/plot.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@
1414
def main():
1515
parser = argparse.ArgumentParser(description="Plot the results of the errorbar-plot benchmark.")
1616
parser.add_argument('root', help="directory with the result files to plot")
17-
parser.add_argument('--alternative-palette', dest='use_alt_palette',
18-
action='store_true', default=False,
17+
parser.add_argument('--alternative-palette',
18+
dest='use_alt_palette',
19+
action='store_true',
1920
help="Use another color palette")
2021
args = parser.parse_args()
2122

2223
root = pathlib.Path(args.root)
23-
result_files = list(root.glob('*.csv'))
24+
result_files = sorted(root.glob('*.csv'))
2425
if len(result_files) == 0:
2526
print(f"There are no files to plot in {root}")
2627
sys.exit(1)

cmake/cpp-sort-utils.cmake

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2019-2023 Morwenn
1+
# Copyright (c) 2019-2025 Morwenn
22
# SPDX-License-Identifier: MIT
33

44
# Add a selection of warnings to a target
@@ -15,3 +15,17 @@ macro(cppsort_add_warnings target)
1515
)
1616
endif()
1717
endmacro()
18+
19+
# Mark a target as a SYSTEM library
20+
function(mark_system_library target)
21+
get_target_property(
22+
TARGET_INCLUDE_DIR
23+
${target}
24+
INTERFACE_INCLUDE_DIRECTORIES
25+
)
26+
set_target_properties(
27+
${target}
28+
PROPERTIES
29+
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${TARGET_INCLUDE_DIR}"
30+
)
31+
endfunction()

conanfile.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
# Copyright (c) 2018-2025 Morwenn
3+
# Copyright (c) 2018-2026 Morwenn
44
# SPDX-License-Identifier: MIT
55

66
import os.path
@@ -16,7 +16,7 @@
1616

1717
class CppSortConan(ConanFile):
1818
name = "cpp-sort"
19-
version = "1.17.1"
19+
version = "1.17.2"
2020
description = "Sorting algorithms & related tools"
2121
license = "MIT"
2222
url = "https://github.com/Morwenn/cpp-sort"
@@ -29,7 +29,8 @@ class CppSortConan(ConanFile):
2929
exports_sources = [
3030
"include/*",
3131
"CMakeLists.txt",
32-
"cmake/cpp-sort-config.cmake.in"
32+
"cmake/cpp-sort-config.cmake.in",
33+
"cmake/cpp-sort-utils.cmake",
3334
]
3435
settings = "os", "compiler", "build_type", "arch"
3536
package_type = "header-library"

docs/Comparators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ The two-parameter version of the customization point calls the three-parameter o
117117
*Changed in version 1.5.0:* `case_insensitive_less` is an instance of type `case_insensitive_less_t`.
118118

119119

120-
[binary-predicate]: https://en.cppreference.com/w/cpp/concept/BinaryPredicate
120+
[binary-predicate]: https://en.cppreference.com/w/cpp/named_req/BinaryPredicate
121121
[branchless-traits]: Miscellaneous-utilities.md#branchless-traits
122122
[callable]: https://en.cppreference.com/w/cpp/named_req/Callable
123123
[case-sensitivity]: https://en.wikipedia.org/wiki/Case_sensitivity
124-
[cppcon2015-compare]: https://github.com/CppCon/CppCon2015/tree/master/Presentations/Comparison%20is%20not%20simple%2C%20but%20it%20can%20be%20simpler%20-%20Lawrence%20Crowl%20-%20CppCon%202015
124+
[cppcon2015-compare]: https://github.com/CppCon/CppCon2015/tree/master/Presentations/Comparison%20is%20not%20simple%2C%20but%20it%20can%20be%20simpler
125125
[custom-point]: https://ericniebler.com/2014/10/21/customization-point-design-in-c11-and-beyond/
126126
[natural-sort]: https://en.wikipedia.org/wiki/Natural_sort_order
127127
[P0100]: http://open-std.org/JTC1/SC22/WG21/docs/papers/2015/p0100r1.html

docs/Home.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![cpp-sort logo](images/cpp-sort-logo.svg)
22

3-
Welcome to the **cpp-sort 1.17.1** documentation!
3+
Welcome to the **cpp-sort 1.17.2** documentation!
44

55
This wiki contains documentation about the library: basic documentation about the many sorting tools and how to use them, documentation about the additional utilities provided by the library, as well as a few tutorials about writing your own sorters or sorter adapters. This main page explains a few general things that didn't quite fit in other parts of the documentation.
66

docs/Original-research.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ The following relations have yet to be analyzed:
228228

229229
[better-sorting-networks]: https://etd.ohiolink.edu/!etd.send_file?accession=kent1239814529
230230
[cycle-sort]: https://en.wikipedia.org/wiki/Cycle_sort
231-
[divide-sort-merge-strategy]: http://www.dtic.mil/dtic/tr/fulltext/u2/737270.pdf
231+
[divide-sort-merge-strategy]: https://apps.dtic.mil/sti/tr/pdf/AD0737270.pdf
232232
[exact-sort]: https://www.geocities.ws/p356spt/
233233
[indirect-adapter]: Sorter-adapters.md#indirect_adapter
234234
[morwenn-gist]: https://gist.github.com/Morwenn

0 commit comments

Comments
 (0)