diff options
author | Jeremie Guichard <djebrest@gmail.com> | 2017-02-25 22:34:36 +0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-25 09:24:23 -0800 |
commit | e418bb7e28d958798e43804c12f311a3e6b83720 (patch) | |
tree | 083db7b7b245e838ea7614669b8940c150bb91d5 /cmake/Modules/dlllist.cmake | |
parent | 7b08f8d23c64b05ec019311347f52bbbd181c4a6 (diff) | |
download | subsurface-e418bb7e28d958798e43804c12f311a3e6b83720.tar.gz |
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>
Diffstat (limited to 'cmake/Modules/dlllist.cmake')
-rw-r--r-- | cmake/Modules/dlllist.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
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 |