Skip to content

Commit

Permalink
Merge pull request arduino-cmake#38 from noseglasses/ng_pr_memory_exp…
Browse files Browse the repository at this point in the history
…losion

Fixed excessive memory consumption
  • Loading branch information
MrPointer authored Dec 21, 2017
2 parents 50770f5 + 2e0e464 commit e377f9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/Platform/Core/Libraries/ArduinoLibraryFactory.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ function(make_arduino_library VAR_NAME BOARD_ID LIB_PATH COMPILE_FLAGS LINK_FLAG
endforeach ()

if (LIB_INCLUDES)
string(REPLACE ";" " " LIB_INCLUDES "${LIB_INCLUDES}")
string(REPLACE ";" " " LIB_INCLUDES_SPACE_SEPARATED "${LIB_INCLUDES}")
endif ()

set_target_properties(${TARGET_LIB_NAME} PROPERTIES
COMPILE_FLAGS "${ARDUINO_COMPILE_FLAGS} ${LIB_INCLUDES} -I\"${LIB_PATH}\" -I\"${LIB_PATH}/utility\" ${COMPILE_FLAGS}"
COMPILE_FLAGS "${ARDUINO_COMPILE_FLAGS} ${LIB_INCLUDES_SPACE_SEPARATED} -I\"${LIB_PATH}\" -I\"${LIB_PATH}/utility\" ${COMPILE_FLAGS}"
LINK_FLAGS "${ARDUINO_LINK_FLAGS} ${LINK_FLAGS}")
list(APPEND LIB_INCLUDES "-I\"${LIB_PATH}\";-I\"${LIB_PATH}/utility\"")

Expand Down

0 comments on commit e377f9c

Please sign in to comment.