Fixed a cmake issue.

This commit is contained in:
James Goppert 2011-09-30 08:47:26 -04:00
parent e20c279ca5
commit 31bfeb5781
1 changed files with 1 additions and 0 deletions

View File

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