NuttX cmake build wrapper thorough dependencies

This commit is contained in:
Daniel Agar
2019-11-16 11:43:42 +01:00
committed by Lorenz Meier
parent 99aae8b891
commit 2af262ed1d
9 changed files with 182 additions and 269 deletions
+2 -5
View File
@@ -131,9 +131,9 @@ function(px4_add_common_flags)
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fcheck-new>)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
message(FATAL_ERROR "Intel compiler not yet supported")
message(FATAL_ERROR "Intel compiler not yet supported")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
message(FATAL_ERROR "MS compiler not yet supported")
message(FATAL_ERROR "MS compiler not yet supported")
endif()
# C only flags
@@ -171,9 +171,6 @@ function(px4_add_common_flags)
${PX4_BINARY_DIR}
${PX4_BINARY_DIR}/src/lib
if("${PX4_BOARD_LABEL}" STREQUAL "bootloader")
${PX4_SOURCE_DIR}/platforms/${PX4_PLATFORM}/src/bootloader
endif()
${PX4_SOURCE_DIR}/platforms/${PX4_PLATFORM}/src/px4/${PX4_CHIP_MANUFACTURER}/${PX4_CHIP}/include
${PX4_SOURCE_DIR}/platforms/${PX4_PLATFORM}/src/px4/common/include
${PX4_SOURCE_DIR}/platforms/common/include