summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt/Fortran_PREPROCESS.rst
blob: 069d04ab5125779ae59b5d9be54059eb077b6227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Fortran_PREPROCESS
------------------

Control whether the Fortran source file should be unconditionally
preprocessed.

If unset or empty, rely on the compiler to determine whether the file
should be preprocessed. If explicitly set to ``OFF`` then the file does not
need to be preprocessed. If explicitly set to ``ON``, then the file does
need to be preprocessed as part of the compilation step.

Use the source-specific :prop_sf:`Fortran_PREPROCESS` property if a single
file needs to be preprocessed. If the variable
:variable:`CMAKE_Fortran_PREPROCESS` is set when a target is created its
value is used to initialize this property.

.. note:: For some compilers, ``NAG``, ``PGI`` and ``Solaris Studio``,
          setting this to ``OFF`` will have no effect.