5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-10 01:48:29 -04:00

Fixed a cmake issue.

This commit is contained in:
James Goppert 2011-09-30 08:47:26 -04:00
parent 204c6bb6e7
commit 016dd0bcc7

View File

@ -288,6 +288,7 @@ function(setup_arduino_core VAR_NAME BOARD_ID)
if(BOARD_CORE AND NOT TARGET ${CORE_LIB_NAME})
set(BOARD_CORE_PATH ${ARDUINO_CORES_PATH}/${BOARD_CORE})
find_sources(CORE_SRCS ${BOARD_CORE_PATH})
list(REMOVE_ITEM CORE_SRCS "${BOARD_CORE_PATH}/main.cxx")
add_library(${CORE_LIB_NAME} ${CORE_SRCS})
set(${VAR_NAME} ${CORE_LIB_NAME} PARENT_SCOPE)
endif()