I'm working in NetBeans 8 on CentOS 7 to change some old fortran code to replace numerical differentiation with automatic differentiation using OpenAD. OpenAD takes an annotated fortran function as input and generates an automatically differentiated function as output. That output function depends on some modules provided by OpenAD.
After adding the original files to the NetBeans project, generating the OpenAD output function, and adding that output and its dependencies to the project, the project will not build.
Fatal Error: Can't open module file 'oad_active.mod' for reading at (1): No such file or directory
OAD_active.f90
is one of the dependencies inserted and provided by OpenAD. If I compile that file first and then build the project (without cleaning), the build succeeds.
How do I tell NetBeans to compile OAD_active.f90 sooner in the build process?