diff --git a/fortran/CMakeLists.txt b/fortran/CMakeLists.txt index f516fd02f..0aa962fda 100644 --- a/fortran/CMakeLists.txt +++ b/fortran/CMakeLists.txt @@ -47,6 +47,7 @@ if( HAVE_FORTRAN ) add_custom_command( TARGET eccodes_f90 POST_BUILD COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/include COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_Fortran_MODULE_DIRECTORY}/${CMAKE_CFG_INTDIR}/eccodes.mod ${CMAKE_BINARY_DIR}/include + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_Fortran_MODULE_DIRECTORY}/${CMAKE_CFG_INTDIR}/grib_api.mod ${CMAKE_BINARY_DIR}/include ) # Add the eccodes module file as well