Skip to content

Commit 2e0e464

Browse files
author
Florian Fleissner
committed
Fixed excessive memory consumption
1 parent 50770f5 commit 2e0e464

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/Platform/Core/Libraries/ArduinoLibraryFactory.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ function(make_arduino_library VAR_NAME BOARD_ID LIB_PATH COMPILE_FLAGS LINK_FLAG
4848
endforeach ()
4949

5050
if (LIB_INCLUDES)
51-
string(REPLACE ";" " " LIB_INCLUDES "${LIB_INCLUDES}")
51+
string(REPLACE ";" " " LIB_INCLUDES_SPACE_SEPARATED "${LIB_INCLUDES}")
5252
endif ()
5353

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

0 commit comments

Comments
 (0)