Skip to content

Commit

Permalink
update version to 0.9.1 (#309)
Browse files Browse the repository at this point in the history
* update version to 0.9.1

* update docs for cmake project name

* update dates and changelog

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
phlptp and pre-commit-ci[bot] authored Sep 2, 2023
1 parent 67c34c8 commit 7917f5f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,22 @@ All notable changes to this project after the 0.2.0 release will be documented i
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.8.0][] - 2023-08-11
## [0.9.1][] - 2023-09-01

Fix some string output issues related to units with various prefixes of meters and seconds

### Fixed

- fixed an issue with string output related to mm/s outputting as mHz\*m and mm/s^2 outputting as Gy/km [#308][]

### Added

- Added a CMAKE variable to change the project name, to resolve some packaging conflicts. `UNITS_CMAKE_PROJECT_NAME` [#310][]

[#308]: https://github.com/LLNL/units/pull/308
[#310]: https://github.com/LLNL/units/pull/310

## [0.9.0][] - 2023-08-11

A few user suggested tweaks, and support additional unit string conversions supported by the google unit converter. Cleaner output for `Hz` and prioritization of SI base units in the to_string operation.

Expand Down Expand Up @@ -58,7 +73,7 @@ A few user suggested tweaks, and support additional unit string conversions supp
[#297]: https://github.com/LLNL/units/pull/297
[#298]: https://github.com/LLNL/units/pull/298
[#299]: https://github.com/LLNL/units/pull/299
[#303]: https://github.com/LLNL/units/pull/299
[#303]: https://github.com/LLNL/units/pull/303

## [0.7.0][] - 2022-12-17

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ endif()
project(
${UNITS_CMAKE_PROJECT_NAME}
LANGUAGES C CXX
VERSION 0.9.0
VERSION 0.9.1
)
include(CMakeDependentOption)
include(CTest)
Expand Down
4 changes: 2 additions & 2 deletions FuzzTargets/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ LABEL name="units.fuzzer"
LABEL description="Units library fuzzer"
LABEL vcs-ref=$GIT_COMMIT
LABEL vcs-url="https://github.com/LLNL/units"
LABEL version="0.9.0"
LABEL date="2023-08-11"
LABEL version="0.9.1"
LABEL date="2023-09-01"

VOLUME /fuzz

Expand Down
3 changes: 2 additions & 1 deletion docs/installation/cmake_variables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ CMake variables
- `UNITS_NAMESPACE`: The top level namespace of the library, defaults to `units`.
When compiling with C++17 (or higher), this can be set to, e.g., `mynamespace::units` to avoid name clashes with other libraries defining `units`.
- `UNITS_INSTALL`: This is set to `ON` normally but defaults to `OFF` if used as a subproject. This controls whether anything gets installed by the install target.
- `UNITS_CMAKE_PROJECT_NAME`: This is set to `UNITS` by default. If using this in a package manager or wish to rename the project this variable can be set to another name to change the name of the package. This will change the install path and cmake target names. For example setting `-DUNITS_CMAKE_PROJECT_NAME=LLNL-UNITS` will create cmake project llnl-units::units, and llnl-units::header_only and will install in a llnl-units directory with appropriate cmake files.

If compiling as part of a subproject then a few other options are useful

Expand All @@ -40,7 +41,7 @@ If compiling as part of a subproject then a few other options are useful
CMake Targets
--------------

If you are using the library as a submodule or importing the package there are a couple targets that can be used depending on the build
If you are using the library as a submodule or importing the package there are a couple targets that can be used depending on the build. NOTE: these can be changed using `UNITS_CMAKE_PROJECT_NAME`.

- `units::units` will be set to the library being built, either the shared, static, or object
- `units::header_only` is a target for the headers if `UNITS_HEADER_ONLY` CMake variable is set, then only this target is generated. This target is always created.
Expand Down
4 changes: 2 additions & 2 deletions webserver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ LABEL name="units.webserver"
LABEL description="Units library webserver"
LABEL vcs-ref=$GIT_COMMIT
LABEL vcs-url="https://github.com/LLNL/units"
LABEL version="0.9.0"
LABEL date="2023-08-11"
LABEL version="0.9.1"
LABEL date="2023-09-01"

VOLUME /weblog

Expand Down

0 comments on commit 7917f5f

Please sign in to comment.