fsfw-example-hosted/cmake/HardwareOsPreConfig.cmake

17 lines
273 B
CMake

function(pre_source_hw_os_config)
if(${OS_FSFW} STREQUAL linux)
find_package(Threads REQUIRED)
# Hosted
else()
set(BSP_PATH "bsp_hosted")
if(WIN32)
elseif(UNIX)
find_package(Threads REQUIRED)
endif()
endif()
set(BSP_PATH ${BSP_PATH} PARENT_SCOPE)
endfunction()