trying to export ETL lib

This commit is contained in:
Robin Müller 2022-04-26 11:15:24 +02:00
parent 1739edd9b0
commit 3d047f9629
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
1 changed files with 7 additions and 2 deletions

View File

@ -12,7 +12,7 @@ set(MSG_PREFIX "fsfw |")
set(FSFW_ETL_LIB_MAJOR_VERSION 20 CACHE STRING
"ETL library major version requirement"
)
set(FSFW_ETL_LIB_VERSION ${FSFW_ETL_LIB_MAJOR_VERSION}.27.2 CACHE STRING
set(FSFW_ETL_LIB_VERSION ${FSFW_ETL_LIB_MAJOR_VERSION}.27.3 CACHE STRING
"ETL library exact version requirement"
)
@ -132,7 +132,7 @@ if(FSFW_BUILD_UNITTESTS)
endif()
endif()
message(STATUS "Finding and/or providing ETL library")
message(STATUS "Finding and/or providing ETL library with version ${FSFW_ETL_LIB_MAJOR_VERSION}")
# Check whether the user has already installed ETL first
find_package(${FSFW_ETL_LIB_NAME} ${FSFW_ETL_LIB_MAJOR_VERSION} QUIET)
@ -153,6 +153,11 @@ if(NOT ${FSFW_ETL_LIB_NAME}_FOUND)
FetchContent_MakeAvailable(etl)
endif()
export(EXPORT etl
FILE "${CMAKE_CURRENT_BINARY_DIR}/cmake/etl.cmake"
NAMESPACE fsfw::
)
set(FSFW_CORE_INC_PATH "inc")
set_property(CACHE FSFW_OSAL PROPERTY STRINGS host linux rtems freertos)