mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-22 01:10:35 +08:00
Requested changes.
This commit is contained in:
+7
-2
@@ -9,6 +9,11 @@ project(uavcan C CXX)
|
|||||||
#=============================================================================
|
#=============================================================================
|
||||||
# build options
|
# build options
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||||
|
set(DEFAULT_UAVCAN_PLATFORM "linux")
|
||||||
|
endif()
|
||||||
|
|
||||||
# options are listed in a table format below
|
# options are listed in a table format below
|
||||||
set(opts
|
set(opts
|
||||||
# name: type: default value: string options list : description
|
# name: type: default value: string options list : description
|
||||||
@@ -66,12 +71,12 @@ install(DIRECTORY dsdl DESTINATION share/uavcan)
|
|||||||
add_subdirectory(libuavcan)
|
add_subdirectory(libuavcan)
|
||||||
|
|
||||||
# drivers
|
# drivers
|
||||||
add_subdirectory(libuavcan_drivers/posix)
|
|
||||||
|
|
||||||
if (${UAVCAN_PLATFORM} STREQUAL "linux")
|
if (${UAVCAN_PLATFORM} STREQUAL "linux")
|
||||||
message(STATUS "Adding Linux support library")
|
message(STATUS "Adding Linux support library")
|
||||||
|
add_subdirectory(libuavcan_drivers/posix)
|
||||||
add_subdirectory(libuavcan_drivers/linux)
|
add_subdirectory(libuavcan_drivers/linux)
|
||||||
elseif(${UAVCAN_PLATFORM} STREQUAL "stm32")
|
elseif(${UAVCAN_PLATFORM} STREQUAL "stm32")
|
||||||
|
add_subdirectory(libuavcan_drivers/posix)
|
||||||
add_subdirectory(libuavcan_drivers/stm32/driver)
|
add_subdirectory(libuavcan_drivers/stm32/driver)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ if (COMPILER_IS_GCC_COMPATIBLE)
|
|||||||
message(STATUS "Using C++03")
|
message(STATUS "Using C++03")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03 -Wno-variadic-macros -Wno-long-long")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++03 -Wno-variadic-macros -Wno-long-long")
|
||||||
else ()
|
else ()
|
||||||
message(STATUS "Using C++11 (pass USE_CPP03=1 to override)")
|
message(STATUS "Using C++11 (pass UAVCAN_USE_CPP03=1 to override)")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|||||||
Reference in New Issue
Block a user