Skip to content
Snippets Groups Projects
Commit b3615f59 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Work around issue 22898 of CMake

Use separate directories for modules of each target to circumvent
[Issue 22898](https://gitlab.kitware.com/cmake/cmake/-/issues/22898)
of CMake.
parent abc2f7a5
No related branches found
No related tags found
No related merge requests found
......@@ -106,3 +106,16 @@ target_link_libraries(test_set_max_speed Geometry::geometry
Numer_Rec_95::numer_rec_95 NetCDF95::netcdf95 Shapelib_03::shapelib_03
Contour_531::contour_531 Jumble::jumble NR_util::nr_util
NetCDF_Fortran::netcdff gpc_f)
foreach(my_target IN ITEMS test_get_1_outerm test_set_all_outerm
test_good_contour test_inside_4 test_mean_speed
test_max_speed_contour_ssh test_nearby_extr test_local_extrema
test_set_max_speed)
set_target_properties(${my_target} PROPERTIES Fortran_MODULE_DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}/${my_target}_modules)
target_include_directories(${my_target} PRIVATE
${PROJECT_BINARY_DIR}/${my_target}_modules>)
endforeach()
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