From 8c93bffd9ff7b2bf2cfd490dde01236b59110fac Mon Sep 17 00:00:00 2001 From: Ed Mooring Date: Tue, 3 May 2022 05:59:08 +0000 Subject: [PATCH] apps: Remove leading space in CMake linker directive variables. While building the Xilinx R5 demo apps, the following error message occurs: CMake Error at apps/examples/echo/CMakeLists.txt:38 (add_executable): Target "rpmsg-echo.out" links to item " -Wl,--defsym,_rsc_table=0x3ed20000 -T"/OpenAMP-Project/gh3/open-amp/apps/system/generic/machine/zynqmp_r5/ linker_remote.ld"" which has leading or trailing whitespace. This is now an error according to policy CMP0004. Remove the leading space. Signed-off-by: Ed Mooring --- apps/system/generic/machine/zynqmp_r5/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/system/generic/machine/zynqmp_r5/CMakeLists.txt b/apps/system/generic/machine/zynqmp_r5/CMakeLists.txt index 4a3a7fbb3..91c0cafe6 100644 --- a/apps/system/generic/machine/zynqmp_r5/CMakeLists.txt +++ b/apps/system/generic/machine/zynqmp_r5/CMakeLists.txt @@ -8,9 +8,9 @@ if(NOT DEFINED ${RSC_TABLE}) endif(NOT DEFINED ${RSC_TABLE}) set (_linker_script "${CMAKE_CURRENT_SOURCE_DIR}/linker_remote.ld") -set_property (GLOBAL PROPERTY APP_LINKER_OPT " -Wl,--defsym,_rsc_table=${RSC_TABLE} -T\"${_linker_script}\"") +set_property (GLOBAL PROPERTY APP_LINKER_OPT "-Wl,--defsym,_rsc_table=${RSC_TABLE} -T\"${_linker_script}\"") set (_linker_large_text_script "${CMAKE_CURRENT_SOURCE_DIR}/linker_large_text.ld") -set_property (GLOBAL PROPERTY APP_LINKER_LARGE_TEXT_OPT " -Wl,--defsym,_rsc_table=${RSC_TABLE} -T\"${_linker_large_text_script}\"") +set_property (GLOBAL PROPERTY APP_LINKER_LARGE_TEXT_OPT "-Wl,--defsym,_rsc_table=${RSC_TABLE} -T\"${_linker_large_text_script}\"") find_path(XIL_INCLUDE_DIR NAMES xparameters.h PATHS ${CMAKE_FIND_ROOT_PATH}) collect (PROJECT_INC_DIRS "${XIL_INCLUDE_DIR}")