Skip to content

Commit 8c93bff

Browse files
edmooringarnopo
authored andcommitted
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 <[email protected]>
1 parent 3ff669b commit 8c93bff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/system/generic/machine/zynqmp_r5/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ if(NOT DEFINED ${RSC_TABLE})
88
endif(NOT DEFINED ${RSC_TABLE})
99

1010
set (_linker_script "${CMAKE_CURRENT_SOURCE_DIR}/linker_remote.ld")
11-
set_property (GLOBAL PROPERTY APP_LINKER_OPT " -Wl,--defsym,_rsc_table=${RSC_TABLE} -T\"${_linker_script}\"")
11+
set_property (GLOBAL PROPERTY APP_LINKER_OPT "-Wl,--defsym,_rsc_table=${RSC_TABLE} -T\"${_linker_script}\"")
1212
set (_linker_large_text_script "${CMAKE_CURRENT_SOURCE_DIR}/linker_large_text.ld")
13-
set_property (GLOBAL PROPERTY APP_LINKER_LARGE_TEXT_OPT " -Wl,--defsym,_rsc_table=${RSC_TABLE} -T\"${_linker_large_text_script}\"")
13+
set_property (GLOBAL PROPERTY APP_LINKER_LARGE_TEXT_OPT "-Wl,--defsym,_rsc_table=${RSC_TABLE} -T\"${_linker_large_text_script}\"")
1414

1515
find_path(XIL_INCLUDE_DIR NAMES xparameters.h PATHS ${CMAKE_FIND_ROOT_PATH})
1616
collect (PROJECT_INC_DIRS "${XIL_INCLUDE_DIR}")

0 commit comments

Comments
 (0)