fsfw-example-hosted/cmake/HardwareOsPreConfig.cmake

17 lines
273 B
CMake
Raw Normal View History

2021-06-08 13:37:02 +02:00
function(pre_source_hw_os_config)
2021-06-08 13:53:52 +02:00
if(${OS_FSFW} STREQUAL linux)
2021-06-08 13:37:02 +02:00
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()