Fortran_MODULE_DIRECTORY.rst 811 B

1234567891011121314151617
  1. Fortran_MODULE_DIRECTORY
  2. ------------------------
  3. Specify output directory for Fortran modules provided by the target.
  4. If the target contains Fortran source files that provide modules and
  5. the compiler supports a module output directory this specifies the
  6. directory in which the modules will be placed. When this property is
  7. not set the modules will be placed in the build directory
  8. corresponding to the target's source directory. If the variable
  9. CMAKE_Fortran_MODULE_DIRECTORY is set when a target is created its
  10. value is used to initialize this property.
  11. Note that some compilers will automatically search the module output
  12. directory for modules USEd during compilation but others will not. If
  13. your sources USE modules their location must be specified by
  14. INCLUDE_DIRECTORIES regardless of this property.