Update FSFW #70

Merged
meierj merged 44 commits from mueller/update-fsfw into eive/develop 2022-04-27 07:48:57 +02:00
3 changed files with 13 additions and 17 deletions
Showing only changes of commit 4f0669c574 - Show all commits

View File

@ -10,7 +10,7 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
set(FSFW_ETL_LIB_MAJOR_VERSION 20 CACHE STRING set(FSFW_ETL_LIB_MAJOR_VERSION 20 CACHE STRING
"ETL library major version requirement" "ETL library major version requirement"
) )
set(FSFW_ETL_LIB_VERSION ${FSFW_ETL_LIB_MAJOR_VERSION}.26.0 CACHE STRING set(FSFW_ETL_LIB_VERSION ${FSFW_ETL_LIB_MAJOR_VERSION}.27.2 CACHE STRING
"ETL library exact version requirement" "ETL library exact version requirement"
) )
@ -106,11 +106,9 @@ if(FSFW_BUILD_UNITTESTS)
endif() endif()
message(STATUS "Finding and/or providing ETL library") message(STATUS "Finding and/or providing ETL library")
# Check whether the user has already installed ETL first # Check whether the user has already installed ETL first
# I think the version provisioning feature of CMake has not been implemented for the ETL library find_package(${FSFW_ETL_LIB_NAME} ${FSFW_ETL_LIB_MAJOR_VERSION} QUIET)
# yet. Therefore we can not specify any (not even the major) version here and we have to rely
# on the user having installed the correct version for now
find_package(${FSFW_ETL_LIB_NAME} QUIET)
# Not installed, so use FetchContent to download and provide etl # Not installed, so use FetchContent to download and provide etl
if(NOT ${FSFW_ETL_LIB_NAME}_FOUND) if(NOT ${FSFW_ETL_LIB_NAME}_FOUND)
message(STATUS message(STATUS

View File

@ -56,9 +56,10 @@ information about the possible options.
The Embedded Template Library (etl) is a dependency of the FSFW which is automatically The Embedded Template Library (etl) is a dependency of the FSFW which is automatically
installed and provided by the build system unless the correction version was installed. installed and provided by the build system unless the correction version was installed.
The current recommended version can be found inside the fsfw `CMakeLists.txt` file or by using The current recommended version can be found inside the fsfw `CMakeLists.txt` file or by using
`ccmake` and looking up the `FSFW_ETL_LIB_VERSION` variable. `ccmake` and looking up the `FSFW_ETL_LIB_MAJOR_VERSION` variable.
You can install the ETL library like this: You can install the ETL library like this. On Linux, it might be necessary to add `sudo` before
the install call:
```cpp ```cpp
git clone https://github.com/ETLCPP/etl git clone https://github.com/ETLCPP/etl
@ -69,10 +70,8 @@ cmake ..
cmake --install . cmake --install .
``` ```
Right now, the version provision feature by the ETL library has not been implemented It is recommended to install `20.27.2` or newer for the package version handling of
yet so `CMake` is unable to determine and check the major version of the ETL ETL to work.
library. You have to ensure that the ETL library has been installed with the
correct major version.
## Adding the library ## Adding the library

View File

@ -25,9 +25,10 @@ Prerequisites
The Embedded Template Library (etl) is a dependency of the FSFW which is automatically The Embedded Template Library (etl) is a dependency of the FSFW which is automatically
installed and provided by the build system unless the correction version was installed. installed and provided by the build system unless the correction version was installed.
The current recommended version can be found inside the fsfw ``CMakeLists.txt`` file or by using The current recommended version can be found inside the fsfw ``CMakeLists.txt`` file or by using
``ccmake`` and looking up the ``FSFW_ETL_LIB_VERSION`` variable. ``ccmake`` and looking up the ``FSFW_ETL_LIB_MAJOR_VERSION`` variable.
You can install the ETL library like this: You can install the ETL library like this. On Linux, it might be necessary to add ``sudo`` before
the install call:
.. code-block:: console .. code-block:: console
@ -38,10 +39,8 @@ You can install the ETL library like this:
cmake .. cmake ..
cmake --install . cmake --install .
Right now, the version provision feature by the ETL library has not been implemented It is recommended to install ``20.27.2`` or newer for the package version handling of
yet so ``CMake`` is unable to determine and check the major version of the ETL ETL to work.
library. You have to ensure that the ETL library has been installed with the
correct major version.
Adding the library Adding the library
------------------- -------------------