Fix dlllist.cmake not to use hard coded path to link.txt

The utility could be used for other targets,
path should therefore depend on the inputted target parameter

Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
This commit is contained in:
Jeremie Guichard 2017-02-25 22:34:36 +07:00 committed by Dirk Hohndel
parent 7b08f8d23c
commit e418bb7e28

View file

@ -20,7 +20,7 @@ message(STATUS "addpath is ${ADDPATH}")
# first space) -- this will fail if the full path for the
# linker used contains a space...
execute_process(
COMMAND tail -1 CMakeFiles/subsurface.dir/link.txt
COMMAND tail -1 CMakeFiles/${SUBSURFACE_TARGET}.dir/link.txt
COMMAND cut -d\ -f 2-
OUTPUT_VARIABLE LINKER_LINE
OUTPUT_STRIP_TRAILING_WHITESPACE