summaryrefslogtreecommitdiffstats
path: root/Help/prop_tgt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-22 14:34:53 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-05-22 14:35:10 (GMT)
commit62816ff88c6d1bd8d1c00de5ed448ee915d69e00 (patch)
tree6f1eb5d7c8b7deee02da84d309b446d5f6f38db5 /Help/prop_tgt
parent1b0049680b09872f01f714c8dcb1ed3c5c21da25 (diff)
parent3888de23daca814d66a40642d3e369a5c4747131 (diff)
downloadCMake-62816ff88c6d1bd8d1c00de5ed448ee915d69e00.zip
CMake-62816ff88c6d1bd8d1c00de5ed448ee915d69e00.tar.gz
CMake-62816ff88c6d1bd8d1c00de5ed448ee915d69e00.tar.bz2
Merge topic 'fortran-preprocess-property'
3888de23da Ninja: Skip Fortran preprocessing if Fortran_PREPROCESS is OFF 66c4e87282 Ninja: Add helper functions to generate Fortran build 5cca1ec893 Ninja: Add helper functions to generate Fortran preprocess rule b0a6161190 Fortran: Add Fortran_PREPROCESS property Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4659
Diffstat (limited to 'Help/prop_tgt')
-rw-r--r--Help/prop_tgt/Fortran_PREPROCESS.rst23
1 files changed, 23 insertions, 0 deletions
diff --git a/Help/prop_tgt/Fortran_PREPROCESS.rst b/Help/prop_tgt/Fortran_PREPROCESS.rst
new file mode 100644
index 0000000..47a15c0
--- /dev/null
+++ b/Help/prop_tgt/Fortran_PREPROCESS.rst
@@ -0,0 +1,23 @@
+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.
+
+When using the :generator:`Ninja` generator, all source files are
+first preprocessed in order to generate module dependency
+information. Setting this property to ``OFF`` will make ``Ninja``
+skip this 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.