bugfix for linux/host
This commit is contained in:
parent
3429918f5e
commit
435c6e6410
@ -1,30 +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)
|
||||||
endif ()
|
# We still need to pull in some Linux specific sources
|
||||||
|
target_sources(${LIB_FSFW_NAME} PUBLIC
|
||||||
|
linux/tcpipHelpers.cpp
|
||||||
|
)
|
||||||
|
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