From e418bb7e28d958798e43804c12f311a3e6b83720 Mon Sep 17 00:00:00 2001 From: Jeremie Guichard Date: Sat, 25 Feb 2017 22:34:36 +0700 Subject: 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 --- cmake/Modules/dlllist.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/Modules/dlllist.cmake b/cmake/Modules/dlllist.cmake index bfe50b137..fc6af9760 100644 --- a/cmake/Modules/dlllist.cmake +++ b/cmake/Modules/dlllist.cmake @@ -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 -- cgit v1.2.3-70-g09d2