diff --git a/elastic-tube-1d/fluid-fortran-module/CMakeLists.txt b/elastic-tube-1d/fluid-fortran-module/CMakeLists.txt index 706fd822f..2ce859164 100644 --- a/elastic-tube-1d/fluid-fortran-module/CMakeLists.txt +++ b/elastic-tube-1d/fluid-fortran-module/CMakeLists.txt @@ -16,13 +16,17 @@ endif() find_package(precice 3 REQUIRED CONFIG) find_package(LAPACK REQUIRED) +# specify the path to the preCICE Fortran module +if(NOT DEFINED PRECICE_FORTRAN_MODULE) + message(FATAL_ERROR "PRECICE_FORTRAN_MODULE not set. Provide it with -DPRECICE_FORTRAN_MODULE=") +endif() + add_executable(FluidSolver src/FluidComputeSolution.f90 src/utilities.f90 src/FluidSolver.f90 - src/precice.f90 + ${PRECICE_FORTRAN_MODULE} ) target_link_libraries(FluidSolver PRIVATE precice::precice) target_link_libraries(FluidSolver PRIVATE ${LAPACK_LIBRARIES} ${LAPACK_LINKER_FLAGS}) - diff --git a/elastic-tube-1d/solid-fortran-module/CMakeLists.txt b/elastic-tube-1d/solid-fortran-module/CMakeLists.txt index a1be8258f..ed482ae5a 100644 --- a/elastic-tube-1d/solid-fortran-module/CMakeLists.txt +++ b/elastic-tube-1d/solid-fortran-module/CMakeLists.txt @@ -15,10 +15,16 @@ endif() find_package(precice 3 REQUIRED CONFIG) +# specify the path to the preCICE Fortran module +if(NOT DEFINED PRECICE_FORTRAN_MODULE) + message(FATAL_ERROR "PRECICE_FORTRAN_MODULE not set. Provide it with -DPRECICE_FORTRAN_MODULE=") +endif() + add_executable(SolidSolver src/SolidComputeSolution.f90 src/SolidSolver.f90 - src/precice.f90 + ${PRECICE_FORTRAN_MODULE} ) + target_link_libraries(SolidSolver PRIVATE precice::precice)