Hotfix CMake & ETL #604
|
@ -124,8 +124,8 @@ if(NOT ${FSFW_ETL_LIB_NAME}_FOUND)
|
|||
GIT_TAG ${FSFW_ETL_LIB_VERSION}
|
||||
)
|
||||
|
||||
FetchContent_MakeAvailable(etl)
|
||||
add_library(${FSFW_ETL_LINK_TARGET} ALIAS etl)
|
||||
FetchContent_MakeAvailable(${FSFW_ETL_LIB_NAME})
|
||||
gaisser marked this conversation as resolved
Outdated
|
||||
add_library(${FSFW_ETL_LINK_TARGET} ALIAS ${FSFW_ETL_LIB_NAME})
|
||||
endif()
|
||||
|
||||
set(FSFW_CORE_INC_PATH "inc")
|
||||
|
|
Loading…
Reference in New Issue
Block a user
If I read this correct, we should only call FetchContent_MakeAvailable once:
This ensures dependency collection works correct for dependencies of the dependency (which we might not have ATM)
The Catch2 dependency only needs to be loaded for unit tests I think
This could be solved with an if clause which either makes etl available or makes both available depending on whether Catch2 was loaded.
Or maybe MakeAvailable can deal with undeclared dependencies.. maybe I will test this