Build: Fix linker include in cmake
This commit fixes the implemented embedded_set_target_link_includes
and the linker flag setting by armclang and gnuarm.
Change-Id: I00d520e61200ed204c55425c61cc9c61cc6b1194
Signed-off-by: Gabor Kertesz <gabor.kertesz@arm.com>
diff --git a/cmake/Common/CompilerGNUARMCommon.cmake b/cmake/Common/CompilerGNUARMCommon.cmake
index c4be8ba..b3662f9 100644
--- a/cmake/Common/CompilerGNUARMCommon.cmake
+++ b/cmake/Common/CompilerGNUARMCommon.cmake
@@ -79,13 +79,13 @@
set(_FLAGS "")
if (_MY_PARAMS_DEFINES)
foreach(_DEFINE IN LISTS _MY_PARAMS_DEFINES)
- list(APPEND _FLAGS "-D ${_DEFINE}")
+ list(APPEND _FLAGS "-D${_DEFINE}")
endforeach()
endif()
#Compose additional command line switches from include paths.
if (_MY_PARAMS_INCLUDES)
foreach(_INCLUDE_P IN LISTS _MY_PARAMS_INCLUDES)
- list(APPEND _FLAGS "-I ${_INCLUDE_P}")
+ list(APPEND _FLAGS "-I${_INCLUDE_P}")
endforeach()
endif()