Skip to content

Commit 870843e

Browse files
committed
refactor: rename repository to slick-queue and update references in CMake, documentation, and tests
1 parent fb14c4f commit 870843e

File tree

8 files changed

+47
-40
lines changed

8 files changed

+47
-40
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
4545
- name: Create header archive
4646
run: |
47-
zip -r ./slick_queue-${{ steps.get_version.outputs.VERSION }}.zip include/
47+
zip -r ./slick-queue-${{ steps.get_version.outputs.VERSION }}.zip include/
4848
4949
- name: Create Release
5050
uses: softprops/action-gh-release@v1
@@ -59,4 +59,4 @@ jobs:
5959
prerelease: false
6060
generate_release_notes: false
6161
files: |
62-
slick_queue-${{ steps.get_version.outputs.VERSION }}.zip
62+
slick-queue-${{ steps.get_version.outputs.VERSION }}.zip

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# v1.2.2 - 2026-01-10
2+
- Rename repository from slick_queue to slick-queue (hyphenated naming follows recommended convention)
3+
- Refactor repository name in CMake configuration files
4+
- Update documentation and build references to use new repository name
5+
16
# v1.2.1 - 2025-12-27
27
- Fixed a race condition when multi-process trying to create the same shared memory segment
38
- Fixed CTest integration by moving enable_testing() to root CMakeLists.txt and removing EXCLUDE_FROM_ALL

CMakeLists.txt

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
cmake_minimum_required(VERSION 3.10)
22

3-
project(slick_queue
4-
VERSION 1.2.1
3+
project(slick-queue
4+
VERSION 1.2.2
55
DESCRIPTION "A C++ Lock-Free MPMC queue"
66
LANGUAGES CXX)
77

88
set(CMAKE_CXX_STANDARD 20)
99

10-
add_library(slick_queue INTERFACE)
11-
add_library(slick::slick_queue ALIAS slick_queue)
12-
target_include_directories(slick_queue INTERFACE
10+
add_library(slick-queue INTERFACE)
11+
add_library(slick::queue ALIAS slick-queue)
12+
add_library(slick_queue ALIAS slick-queue) # For backward compatibility with older versions
13+
14+
target_include_directories(slick-queue INTERFACE
1315
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
1416
$<INSTALL_INTERFACE:include>
1517
)
1618

1719
if(UNIX AND NOT APPLE)
18-
target_link_libraries(slick_queue INTERFACE rt atomic)
20+
target_link_libraries(slick-queue INTERFACE rt atomic)
1921
endif()
2022

2123
option(BUILD_SLICK_QUEUE_TESTS "Build tests" ON)
@@ -32,35 +34,35 @@ include(CMakePackageConfigHelpers)
3234

3335
# Create the config file
3436
configure_package_config_file(
35-
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/slick_queueConfig.cmake.in"
36-
"${CMAKE_CURRENT_BINARY_DIR}/slick_queueConfig.cmake"
37-
INSTALL_DESTINATION lib/cmake/slick_queue
37+
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/slick-queueConfig.cmake.in"
38+
"${CMAKE_CURRENT_BINARY_DIR}/slick-queueConfig.cmake"
39+
INSTALL_DESTINATION lib/cmake/slick-queue
3840
)
3941

4042
# Create the version file
4143
write_basic_package_version_file(
42-
"${CMAKE_CURRENT_BINARY_DIR}/slick_queueConfigVersion.cmake"
44+
"${CMAKE_CURRENT_BINARY_DIR}/slick-queueConfigVersion.cmake"
4345
VERSION ${PROJECT_VERSION}
4446
COMPATIBILITY SameMajorVersion
4547
)
4648

4749
# Install the config files
4850
install(FILES
49-
"${CMAKE_CURRENT_BINARY_DIR}/slick_queueConfig.cmake"
50-
"${CMAKE_CURRENT_BINARY_DIR}/slick_queueConfigVersion.cmake"
51-
DESTINATION lib/cmake/slick_queue
51+
"${CMAKE_CURRENT_BINARY_DIR}/slick-queueConfig.cmake"
52+
"${CMAKE_CURRENT_BINARY_DIR}/slick-queueConfigVersion.cmake"
53+
DESTINATION lib/cmake/slick-queue
5254
)
5355

5456
# Install the target
55-
install(TARGETS slick_queue
56-
EXPORT slick_queueTargets
57+
install(TARGETS slick-queue
58+
EXPORT slick-queueTargets
5759
)
5860

5961
# Install the export set
60-
install(EXPORT slick_queueTargets
61-
FILE slick_queueTargets.cmake
62+
install(EXPORT slick-queueTargets
63+
FILE slick-queueTargets.cmake
6264
NAMESPACE slick::
63-
DESTINATION lib/cmake/slick_queue
65+
DESTINATION lib/cmake/slick-queue
6466
)
6567

66-
message(STATUS "slick_queue: ${PROJECT_VERSION}")
68+
message(STATUS "slick-queue: ${PROJECT_VERSION}")

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
55
[![Header-only](https://img.shields.io/badge/header--only-yes-brightgreen.svg)](#installation)
66
[![Lock-free](https://img.shields.io/badge/concurrency-lock--free-orange.svg)](#architecture)
7-
[![CI](https://github.com/SlickQuant/slick_queue/actions/workflows/ci.yml/badge.svg)](https://github.com/SlickQuant/slick_queue/actions/workflows/ci.yml)
8-
[![GitHub release](https://img.shields.io/github/v/release/SlickQuant/slick_queue)](https://github.com/SlickQuant/slick_queue/releases)
7+
[![CI](https://github.com/SlickQuant/slick-queue/actions/workflows/ci.yml/badge.svg)](https://github.com/SlickQuant/slick-queue/actions/workflows/ci.yml)
8+
[![GitHub release](https://img.shields.io/github/v/release/SlickQuant/slick-queue)](https://github.com/SlickQuant/slick-queue/releases)
99

1010
SlickQueue is a header-only C++ library that provides a lock-free,
1111
multi-producer multi-consumer (MPMC) queue built on a ring buffer. It is
@@ -45,25 +45,25 @@ vcpkg install slick-queue
4545
Then in your CMakeLists.txt:
4646

4747
```cmake
48-
find_package(slick_queue CONFIG REQUIRED)
49-
target_link_libraries(your_target PRIVATE slick_queue::slick_queue)
48+
find_package(slick-queue CONFIG REQUIRED)
49+
target_link_libraries(your_target PRIVATE slick::queue)
5050
```
5151

5252
### Using CMake FetchContent
5353

5454
```cmake
5555
include(FetchContent)
5656
57-
# Disable tests for slick_queue
57+
# Disable tests for slick-queue
5858
set(BUILD_SLICK_QUEUE_TESTS OFF CACHE BOOL "" FORCE)
5959
FetchContent_Declare(
60-
slick_queue
61-
GIT_REPOSITORY https://github.com/SlickQuant/slick_queue.git
62-
GIT_TAG v1.1.0.0 # See https://github.com/SlickQuant/slick_queue/releases for latest version
60+
slick-queue
61+
GIT_REPOSITORY https://github.com/SlickQuant/slick-queue.git
62+
GIT_TAG v1.1.0.0 # See https://github.com/SlickQuant/slick-queue/releases for latest version
6363
)
64-
FetchContent_MakeAvailable(slick_queue)
64+
FetchContent_MakeAvailable(slick-queue)
6565
66-
target_link_libraries(your_target PRIVATE slick_queue)
66+
target_link_libraries(your_target PRIVATE slick::queue)
6767
```
6868

6969
## Usage

cmake/slick-queueConfig.cmake.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@PACKAGE_INIT@
2+
3+
include("${CMAKE_CURRENT_LIST_DIR}/slick-queueTargets.cmake")
4+
5+
check_required_components(slick-queue)

cmake/slick_queueConfig.cmake.in

Lines changed: 0 additions & 5 deletions
This file was deleted.

include/slick/queue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This file is part of the SlickQueue. Redistribution and use in source and
66
* binary forms, with or without modification, are permitted exclusively under
77
* the terms of the MIT license which is available at
8-
* https://github.com/SlickQuant/slick_queue/blob/main/LICENSE
8+
* https://github.com/SlickQuant/slick-queue/blob/main/LICENSE
99
*
1010
********************************************************************************/
1111

tests/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ if(NOT GTest_FOUND)
1212
FetchContent_MakeAvailable(googletest)
1313
endif()
1414

15-
add_executable(slick_queue_tests tests.cpp shm_tests.cpp)
15+
add_executable(slick-queue-tests tests.cpp shm_tests.cpp)
1616

17-
target_link_libraries(slick_queue_tests PRIVATE slick::slick_queue GTest::gtest_main)
17+
target_link_libraries(slick-queue-tests PRIVATE slick::queue GTest::gtest_main)
1818

1919
include(GoogleTest)
20-
gtest_discover_tests(slick_queue_tests)
20+
gtest_discover_tests(slick-queue-tests)

0 commit comments

Comments
 (0)