Skip to content

Commit 678c234

Browse files
committed
Run pre-commit
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
1 parent 45371d4 commit 678c234

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Extra utilities for cmake:
99

1010
These utilities can be included using both `find_package()` and `ExternalProject`, e.g. if `CMakeExtraUtils` is already
1111
installed on your system:
12+
1213
```cmake
1314
cmake_minimum_required(VERSION 3.25)
1415
@@ -22,6 +23,7 @@ project(MyProject
2223
```
2324

2425
or if you want to download a specific version:
26+
2527
```cmake
2628
cmake_minimum_required(VERSION 3.25)
2729
@@ -40,8 +42,8 @@ project(MyProject
4042
## TODO for v1.0
4143

4244
- [ ] Add Github actions:
43-
- [ ] Documentation
44-
- [ ] Test
45-
- [ ] Release
45+
- [ ] Documentation
46+
- [ ] Test
47+
- [ ] Release
4648
- [ ] Add simple pre-commit and `pyproject.toml` environment
4749
- [x] Fix `DynamicVersion` to work with buildable projects

cmake/DynamicVersion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ add_dependencies(version_lib My_Project_Version)
2525
# Rebuild `version.cpp` whenever the version changes
2626
# `.version` is automatically generated
2727
set_property(SOURCE version.cpp.in APPEND PROPERTY
28-
OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/.version)
29-
```
28+
OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/.version)
29+
```

cmake/PackageComps.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Export and import targets as individual components. Special components `shared`
55
## Example
66

77
The main `CMakeLists.txt` that exports the target:
8+
89
```cmake
910
cmake_minimum_required(VERSION 3.25)
1011
@@ -33,7 +34,9 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/My_ProjectConfigVersion.cmake
3334
# /path/to/PackageComps.cmake
3435
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/My_Project)
3536
```
37+
3638
with `My_ProjectConfig.cmake.in`
39+
3740
```cmake
3841
find_package(CMakeExtraUtils REQUIRED)
3942
include(PackageComps)
@@ -43,10 +46,11 @@ find_components(COMPONENTS my_component)
4346
```
4447

4548
The user will then be able to use:
49+
4650
```cmake
4751
cmake_minimum_required(VERSION 3.25)
4852
4953
project(Downstream_Project)
5054
5155
find_package(My_Project COMPONENTS my_component)
52-
```
56+
```

distro/tmt/setup/packages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
name:
66
- cmake
77
- tmt
8-
become: true
8+
become: true

0 commit comments

Comments
 (0)