summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-02 12:00:00 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-06-02 12:00:07 (GMT)
commit75a34b1214ad9a5d358cec3f3b0bba21ce1c2f5f (patch)
treecf00f34ee619c2f41fa89af4ace6b8bc81f84468 /Modules
parenta0c4c27443afe1c423c08063e2eaf96ffa2f54fb (diff)
parent1f543b23a862f4ab651522085f98e6274ace8e99 (diff)
downloadCMake-75a34b1214ad9a5d358cec3f3b0bba21ce1c2f5f.zip
CMake-75a34b1214ad9a5d358cec3f3b0bba21ce1c2f5f.tar.gz
CMake-75a34b1214ad9a5d358cec3f3b0bba21ce1c2f5f.tar.bz2
Merge topic 'UseSWIG-note-dep-strategy'
1f543b23a8 UseSWIG: note dependency behavior for Make generators Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4834
Diffstat (limited to 'Modules')
-rw-r--r--Modules/UseSWIG.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/UseSWIG.cmake b/Modules/UseSWIG.cmake
index f6a20f8..a60e05e 100644
--- a/Modules/UseSWIG.cmake
+++ b/Modules/UseSWIG.cmake
@@ -41,6 +41,14 @@ Defines the following command for use with ``SWIG``:
configuration-specific files generated by ``SWIG``. All build
configurations must result in the same generated source file.
+ .. note::
+
+ For Make-based generators, ``swig_add_library`` does not track file
+ dependencies, so depending on the ``<name>_swig_compilation`` custom target
+ is required for targets which require the ``swig``-generated files to
+ exist. Other generators may depend on the source files that would be
+ generated by SWIG.
+
``TYPE``
``SHARED``, ``MODULE`` and ``STATIC`` have the same semantic as for the
:command:`add_library` command. If ``USE_BUILD_SHARED_LIBS`` is specified,