Verified Commit 33c5023f authored by Alexander Jaust's avatar Alexander Jaust
Browse files

Trying to fix missing file link issue

The CMake macro is still undefined.
parent df7d8644
Pipeline #18136 failed with stages
in 26 seconds
......@@ -2,6 +2,7 @@
## Not released yet
- 2022-05-30: Fix CMake macro that creates files links to preCICE configuration files.
- 2022-05-25: Add CMake guards to prevent build targe generation of cases that depend of `dune-subgrid`, if `dune-subgrid` is not installed.
- 2022-05-24: Added missing include of `limits` in `couplingadapter.cc`.
- 2022-05-17: Added base setup for extended documentation to be hosted on ReadTheDocs and being created by `mkdocs`. Also adds a base configuration and style of the documentation.
......
......@@ -20,6 +20,8 @@ list(APPEND CMAKE_MODULE_PATH ${dune-common_MODULE_PATH}
# Find preCICE library
find_package(precice 2 REQUIRED CONFIG)
list(APPEND CMAKE_MODULE_PATH ${dune-common_MODULE_PATH}
"${PROJECT_SOURCE_DIR}/cmake/modules")
#include the dune macros
include(DuneMacros)
......
# Create file links to preCICE configuration files
macro(add_precice_file_links)
FILE(GLOB precice_input_files *.xml)
foreach(VAR ${precice_input_files})
get_filename_component(file_name ${VAR} NAME)
dune_symlink_to_source_files(FILES ${file_name})
endforeach()
endmacro()
set(modules
"DumuxPreciceMacros.cmake"
"DumuxPreciceTestMacros.cmake"
"AddPreciceConfigurationFileLinks.cmake"
)
include(GNUInstallDirs)
......
......@@ -9,14 +9,7 @@ target_link_libraries(test_pm_reversed-3d PRIVATE dumux-precice)
# add a symlink for each input file
add_input_file_links()
macro(add_precice_file_links)
FILE(GLOB precice_files *.xml)
foreach(VAR ${input_files})
get_filename_component(file_name ${VAR} NAME)
dune_symlink_to_source_files(FILES ${file_name})
endforeach()
endmacro()
# add a symlink for each preCICE configuration file
add_precice_file_links()
dune_symlink_to_source_files(FILES run-iterative-simulation-test.sh)
......
......@@ -8,14 +8,6 @@ target_link_libraries(test_ff_flow_over_square_2d PRIVATE dumux-precice)
target_link_libraries(test_pm_flow_over_square_2d PRIVATE dumux-precice)
add_input_file_links()
macro(add_precice_file_links)
FILE(GLOB precice_files *.xml)
foreach(VAR ${input_files})
get_filename_component(file_name ${VAR} NAME)
dune_symlink_to_source_files(FILES ${file_name})
endforeach()
endmacro()
add_precice_file_links()
# Dummy test is needed to build porous media solver. The default
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment