Skip to content

Commit ae6e2bb

Browse files
committed
Clean up obsolete files and simplify CI parameters
REMOVED OBSOLETE ELEMENTS: - cmake-template/ directory (obsolete distribution approaches) - dist/ directory (single-file distributions no longer needed) - package.cmake (packaging script for single-file distribution) SIMPLIFIED CI MODULE: - Removed unused CI_PLATFORMS and CI_COMPILERS parameters - Always enable docs deployment (no more CI_DEPLOY_DOCS option) - Reduced parameter complexity Since we use CPM to fetch the repo directly, we don't need: - Manual download templates - Single-file packaged distributions - Complex parameter customization for defaults
1 parent 37edb44 commit ae6e2bb

File tree

6 files changed

+3
-823
lines changed

6 files changed

+3
-823
lines changed

cmake-template/cpp-library-cpm.cmake

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

cmake-template/cpp-library-production.cmake

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

cmake-template/cpp-library.cmake

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

cmake/cpp-library-ci.cmake

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,14 @@
33
# cpp-library-ci.cmake - CI setup functionality
44

55
function(_cpp_library_setup_ci)
6-
set(options
7-
CI_DEPLOY_DOCS
8-
)
96
set(oneValueArgs
107
NAME
118
VERSION
129
DESCRIPTION
13-
)
14-
set(multiValueArgs
15-
CI_PLATFORMS
16-
CI_COMPILERS
10+
CI_DEPLOY_DOCS # Always YES, but kept as parameter for template substitution
1711
)
1812

19-
cmake_parse_arguments(ARG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
20-
21-
# Set defaults
22-
if(NOT ARG_CI_PLATFORMS)
23-
set(ARG_CI_PLATFORMS "ubuntu-latest" "macos-latest" "windows-latest")
24-
endif()
25-
if(NOT ARG_CI_COMPILERS)
26-
set(ARG_CI_COMPILERS "gcc" "clang" "msvc")
27-
endif()
13+
cmake_parse_arguments(ARG "" "${oneValueArgs}" "" ${ARGN})
2814

2915
# Only generate CI files if they don't exist
3016
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.github/workflows/ci.yml")
@@ -45,11 +31,7 @@ function(_cpp_library_setup_ci)
4531
set(PROJECT_NAME "${ARG_NAME}")
4632
set(PROJECT_VERSION "${ARG_VERSION}")
4733
set(PROJECT_DESCRIPTION "${ARG_DESCRIPTION}")
48-
if(ARG_CI_DEPLOY_DOCS)
49-
set(ENABLE_DOCS_DEPLOYMENT "true")
50-
else()
51-
set(ENABLE_DOCS_DEPLOYMENT "false")
52-
endif()
34+
set(ENABLE_DOCS_DEPLOYMENT "true") # Always enable docs deployment
5335

5436
configure_file(
5537
"${TEMPLATE_FILE}"

0 commit comments

Comments
 (0)