Skip to content
Snippets Groups Projects
Commit 736c5293 authored by Markus Blatt's avatar Markus Blatt
Browse files

[release,cmake] Support testing of dune-modules in symlinked directories.


Previously running make test if there was a symlink int the path to the module.
This caused make test to fail. This patch fixes this by extracting the
path without symlinks.
(cherry picked from commit 569204ee)

Signed-off-by: default avatarMarkus Blatt <markus@dr-blatt.de>
parent 572b2631
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,8 @@
#
macro(test_dep)
dune_common_script_dir(SCRIPT_DIR)
execute_process(COMMAND ${CMAKE_COMMAND} -D RELPATH=${CMAKE_SOURCE_DIR} -P ${SCRIPT_DIR}/FindFiles.cmake
get_filename_component(RELPATH "${CMAKE_SOURCE_DIR}" REALPATH)
execute_process(COMMAND ${CMAKE_COMMAND} -D RELPATH=${RELPATH} -P ${SCRIPT_DIR}/FindFiles.cmake
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
RESULT_VARIABLE _res ERROR_VARIABLE _dirs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment