File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -474,14 +474,19 @@ function(process_arch SYSVAR)
474474 add_subdirectory (cmake/target ${TGTNAME} )
475475
476476 foreach (INSTFILE ${${TGTNAME} _FILELIST})
477- if (EXISTS ${MISSION_DEFS} /${TGTNAME} _${INSTFILE} )
477+ if (EXISTS ${MISSION_DEFS} /${TGTNAME} /${INSTFILE} )
478+ set (FILESRC ${MISSION_DEFS} /${TGTNAME} /${INSTFILE} )
479+ elseif (EXISTS ${MISSION_DEFS} /${TGTNAME} _${INSTFILE} )
478480 set (FILESRC ${MISSION_DEFS} /${TGTNAME} _${INSTFILE} )
479481 elseif (EXISTS ${MISSION_DEFS} /${INSTFILE} )
480482 set (FILESRC ${MISSION_DEFS} /${INSTFILE} )
481483 else ()
482484 set (FILESRC)
483485 endif ()
484486 if (FILESRC)
487+ # In case the file is a symlink, follow it to get to the actual file
488+ get_filename_component (FILESRC "${FILESRC} " REALPATH)
489+ message ("NOTE: Selected ${FILESRC} as source for ${INSTFILE} on ${TGTNAME} " )
485490 install (FILES ${FILESRC} DESTINATION ${TGTNAME} /${INSTALL_SUBDIR} RENAME ${INSTFILE} )
486491 else (FILESRC)
487492 message ("WARNING: Install file ${INSTFILE} for ${TGTNAME} not found" )
You can’t perform that action at this time.
0 commit comments