Skip to content

Commit 1ef80b1

Browse files
committed
Merge commit 'afef2591c14ce3956ddcb7f1e605b6932c080d9f' into feature/add_test
2 parents c8e8753 + afef259 commit 1ef80b1

File tree

16 files changed

+273
-72
lines changed

16 files changed

+273
-72
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
Test:
11-
if: "!contains(github.event.head_commit.message, '[skip ci]')"
11+
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
1212
runs-on: ${{ matrix.os }}
1313
strategy:
1414
fail-fast: false
@@ -80,16 +80,17 @@ jobs:
8080
cppcheck: true
8181
clangtidy: true
8282
task: true
83-
doxygen: true
83+
doxygen: ${{ !contains(matrix.os, 'macos-11') }}
8484

8585
- name: Test
86+
if: ${{ !cancelled() }}
8687
run: |
8788
task test
8889
env:
8990
CMAKE_GENERATOR: ${{ matrix.cmake_generator }}
9091

9192
- name: Lint
92-
if: ${{ matrix.os == 'ubuntu-20.04' && matrix.compiler == 'gcc' }}
93+
if: ${{ !cancelled() && matrix.os == 'ubuntu-20.04' && matrix.compiler == 'gcc' }}
9394
run: |
9495
# TODO add to setup-cpp
9596
python3 -m pip install --user cmakelint cmake-format

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ endif()
6767
6868
# Add project_options from https://github.com/aminya/project_options
6969
# Change the version in the following URL to update the package (watch the releases of the repository for future updates)
70-
set(PROJECT_OPTIONS_VERSION "v0.32.2")
70+
set(PROJECT_OPTIONS_VERSION "v0.34.0")
7171
FetchContent_Declare(
7272
_project_options
7373
URL https://github.com/aminya/project_options/archive/refs/tags/${PROJECT_OPTIONS_VERSION}.zip)
@@ -77,8 +77,7 @@ include(${_project_options_SOURCE_DIR}/Index.cmake)
7777
# install vcpkg dependencies: - should be called before defining project()
7878
run_vcpkg(
7979
VCPKG_URL "https://github.com/microsoft/vcpkg.git"
80-
VCPKG_REV "0fa8459cf3a7caca7adc58f992bc32ff13630684"
81-
ENABLE_VCPKG_UPDATE
80+
VCPKG_REV "10e052511428d6b0c7fcc63a139e8024bb146032"
8281
)
8382
8483
# Set the project name and language

docs/src/project_options_example.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ endif()
2020
2121
# Add project_options from https://github.com/aminya/project_options
2222
# Change the version in the following URL to update the package (watch the releases of the repository for future updates)
23-
set(PROJECT_OPTIONS_VERSION "v0.32.2")
23+
set(PROJECT_OPTIONS_VERSION "v0.34.0")
2424
FetchContent_Declare(
2525
_project_options
2626
URL https://github.com/aminya/project_options/archive/refs/tags/${PROJECT_OPTIONS_VERSION}.zip)
@@ -30,7 +30,7 @@ include(${_project_options_SOURCE_DIR}/Index.cmake)
3030
# install vcpkg dependencies: - should be called before defining project()
3131
run_vcpkg(
3232
VCPKG_URL "https://github.com/microsoft/vcpkg.git"
33-
VCPKG_REV "0fa8459cf3a7caca7adc58f992bc32ff13630684"
33+
VCPKG_REV "10e052511428d6b0c7fcc63a139e8024bb146032"
3434
ENABLE_VCPKG_UPDATE
3535
)
3636

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"name": "project_options",
3+
"version": "0.34.0",
34
"homepage": "http://aminya.github.io/project_options"
45
}

src/Doxygen.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ function(enable_doxygen DOXYGEN_THEME)
7979
endif()
8080

8181
# find doxygen and dot if available
82-
find_package(Doxygen REQUIRED OPTIONAL_COMPONENTS dot)
82+
find_package(Doxygen OPTIONAL_COMPONENTS dot)
83+
if (NOT Doxygen_FOUND)
84+
message(WARNING "Doxygen not found, install doxygen and try again. Documentation will not be generated.")
85+
return()
86+
endif()
8387

8488
# add doxygen-docs target
8589
message(STATUS "Adding `doxygen-docs` target that builds the documentation.")

src/DynamicProjectOptions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Here is an example of how to use ``dynamic_project_options``:
5555
5656
# Add project_options from https://github.com/aminya/project_options
5757
# Change the version in the following URL to update the package (watch the releases of the repository for future updates)
58-
set(PROJECT_OPTIONS_VERSION "v0.32.2")
58+
set(PROJECT_OPTIONS_VERSION "v0.34.0")
5959
FetchContent_Declare(
6060
_project_options
6161
URL https://github.com/aminya/project_options/archive/refs/tags/${PROJECT_OPTIONS_VERSION}.zip)

0 commit comments

Comments
 (0)