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/CompilerArmClangCommon.cmake b/cmake/Common/CompilerArmClangCommon.cmake
index 87565f3..935c879 100644
--- a/cmake/Common/CompilerArmClangCommon.cmake
+++ b/cmake/Common/CompilerArmClangCommon.cmake
@@ -90,7 +90,7 @@
#Compose additional command line switches from include paths.
if (_MY_PARAMS_INCLUDES)
foreach(_INCLUDE_P IN LISTS _MY_PARAMS_INCLUDES)
- string(APPEND _FLAGS " -I ${_INCLUDE_P}")
+ string(APPEND _FLAGS " --predefine=\"-I${_INCLUDE_P}\"")
endforeach()
endif()