Skip to content
Snippets Groups Projects
Commit 569204ee 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.
parent 84832109
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