From 2e0e4645e6e3198eb0ea910536258aa0739c9f68 Mon Sep 17 00:00:00 2001 From: Florian Fleissner Date: Wed, 20 Dec 2017 12:27:39 +0100 Subject: [PATCH] Fixed excessive memory consumption --- cmake/Platform/Core/Libraries/ArduinoLibraryFactory.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Platform/Core/Libraries/ArduinoLibraryFactory.cmake b/cmake/Platform/Core/Libraries/ArduinoLibraryFactory.cmake index 2420209..2dd392f 100644 --- a/cmake/Platform/Core/Libraries/ArduinoLibraryFactory.cmake +++ b/cmake/Platform/Core/Libraries/ArduinoLibraryFactory.cmake @@ -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\"")