Merge pull request 'Linux Fix' (#393) from KSat/fsfw:mueller/linux-fix into development
Reviewed-on: fsfw/fsfw#393
This commit is contained in:
commit
c234da6f07
@ -1,35 +1,34 @@
|
|||||||
# Check the OS_FSFW variable
|
# Check the OS_FSFW variable
|
||||||
if(${OS_FSFW} STREQUAL "freertos")
|
if(${OS_FSFW} STREQUAL "freertos")
|
||||||
add_subdirectory(FreeRTOS)
|
add_subdirectory(FreeRTOS)
|
||||||
elseif(${OS_FSFW} STREQUAL "rtems")
|
elseif(${OS_FSFW} STREQUAL "rtems")
|
||||||
add_subdirectory(rtems)
|
add_subdirectory(rtems)
|
||||||
elseif(${OS_FSFW} STREQUAL "linux")
|
elseif(${OS_FSFW} STREQUAL "linux")
|
||||||
add_subdirectory(linux)
|
add_subdirectory(linux)
|
||||||
elseif(${OS_FSFW} STREQUAL "host")
|
elseif(${OS_FSFW} STREQUAL "host")
|
||||||
add_subdirectory(host)
|
add_subdirectory(host)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
add_subdirectory(windows)
|
add_subdirectory(windows)
|
||||||
elseif(UNIX)
|
elseif(UNIX)
|
||||||
target_sources(${LIB_FSFW_NAME}
|
# We still need to pull in some Linux specific sources
|
||||||
PUBLIC
|
target_sources(${LIB_FSFW_NAME} PUBLIC
|
||||||
linux/TcUnixUdpPollingTask.cpp
|
linux/tcpipHelpers.cpp
|
||||||
linux/TmTcUnixUdpBridge.cpp
|
)
|
||||||
)
|
endif ()
|
||||||
endif ()
|
|
||||||
|
|
||||||
else()
|
else()
|
||||||
|
|
||||||
message(WARNING "The OS_FSFW variable was not set. Assuming host OS..")
|
message(WARNING "The OS_FSFW variable was not set. Assuming host OS..")
|
||||||
# Not set. Assumuing this is a host build, try to determine host OS
|
# Not set. Assumuing this is a host build, try to determine host OS
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
add_subdirectory(host)
|
add_subdirectory(host)
|
||||||
add_subdirectory(windows)
|
add_subdirectory(windows)
|
||||||
elseif (UNIX)
|
elseif (UNIX)
|
||||||
add_subdirectory(linux)
|
add_subdirectory(linux)
|
||||||
else ()
|
else ()
|
||||||
# MacOS or other OSes have not been tested yet / are not supported.
|
# MacOS or other OSes have not been tested yet / are not supported.
|
||||||
message(FATAL_ERROR "The host OS could not be determined! Aborting.")
|
message(FATAL_ERROR "The host OS could not be determined! Aborting.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user