Skip to content

Commit 8755268

Browse files
Copilotvaind
andcommitted
Update documentation for CMake FetchContent support
Co-authored-by: vaind <[email protected]>
1 parent eb17cbf commit 8755268

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,20 @@ jobs:
4646
name: Gradle Plugin
4747
secrets:
4848
api-token: ${{ secrets.CI_DEPLOY_KEY }}
49+
50+
# Update a CMake file with FetchContent_Declare
51+
cmake-dep:
52+
uses: getsentry/github-workflows/.github/workflows/updater.yml@v2
53+
with:
54+
path: cmake/dependencies.cmake
55+
name: CMake Dependency
56+
secrets:
57+
api-token: ${{ secrets.CI_DEPLOY_KEY }}
4958
```
5059
5160
### Inputs
5261
53-
* `path`: Dependency path in the source repository, this can be either a submodule, a .properties file or a shell script.
62+
* `path`: Dependency path in the source repository, this can be either a submodule, a .properties file, a CMake file, or a shell script.
5463
* type: string
5564
* required: true
5665
* `name`: Name used in the PR title and the changelog entry.

updater/scripts/update-dependency.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ param(
22
# Path to the dependency, which can be either of the following:
33
# - a submodule
44
# - a [.properties](https://en.wikipedia.org/wiki/.properties) file with `version` (e.g. 1.0.0) and `repo` (e.g. https://github.com/getsentry/dependency)
5+
# - a CMake file (.cmake, CMakeLists.txt) or any file containing FetchContent_Declare with `GIT_REPOSITORY` and `GIT_TAG`
56
# - a script (.sh, .ps1) that takes the executes a given action based on a given argument:
67
# * `get-version` - return the currently specified dependency version
78
# * `get-repo` - return the repository url (e.g. https://github.com/getsentry/dependency)

0 commit comments

Comments
 (0)