Fortran_PREPROCESS.rst 756 B

12345678910111213141516171819
  1. Fortran_PREPROCESS
  2. ------------------
  3. .. versionadded:: 3.18
  4. Control whether the Fortran source file should be unconditionally preprocessed.
  5. If unset or empty, rely on the compiler to determine whether the file
  6. should be preprocessed. If explicitly set to ``OFF`` then the file
  7. does not need to be preprocessed. If explicitly set to ``ON``, then
  8. the file does need to be preprocessed as part of the compilation step.
  9. When using the :generator:`Ninja` generator, all source files are
  10. first preprocessed in order to generate module dependency
  11. information. Setting this property to ``OFF`` will make ``Ninja``
  12. skip this step.
  13. Consider using the target-wide :prop_tgt:`Fortran_PREPROCESS` property
  14. if all source files in a target need to be preprocessed.