Apps: ZynqMP R5: specify full linker script option
[processor-sdk/open-amp.git] / apps / system / generic / machine / zynqmp_r5 / CMakeLists.txt
index 0a7222383caa925e52ce254ee6de4200f05f4bfe..61393189e5105bfed460d2630549320a5ac9d42d 100644 (file)
@@ -7,8 +7,12 @@ else (WITH_REMOTEPROC_MASTER)
   set (_linker_script "${CMAKE_CURRENT_SOURCE_DIR}/linker_remote.ld")
 endif (WITH_REMOTEPROC_MASTER)
 
-set_property (GLOBAL PROPERTY APP_LINKER_SCRIPT "${_linker_script}")
+set_property (GLOBAL PROPERTY APP_LINKER_OPT "-T\"${_linker_script}\"")
 
 find_library(LIBXIL_LIB NAMES xil PATHS ${CMAKE_FIND_ROOT_PATH})
 get_filename_component(LIBXIL_LIB_DIR ${LIBXIL_LIB} DIRECTORY)
 collect(PROJECT_LIB_DIRS ${LIBXIL_LIB_DIR})
+
+collect(PROJECT_LIB_DEPS xil)
+collect(PROJECT_LIB_DEPS c)
+collect(PROJECT_LIB_DEPS m)