svn commit: r1919755 - /subversion/branches/cmake/build/generator/templates/targets.cmake.ezt

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
Author: rinrab
Date: Thu Aug  8 17:22:48 2024
New Revision: 1919755

URL: http://svn.apache.org/viewvc?rev=1919755&view=rev
Log:
On the 'cmake' branch: Setup dependencies for SWIG targets.

Little note about linking against `external-[targets.swig_lang]' targets,
which is added manually: We will use these INTERFACE targets for setting
language-specific options and dependencies. For example, external-python target
will be declared as INTERFACE and linked with Python dev-kit and py3c library.
This replaces possible additional code inside the template and which is
different for each language.

* build/generator/templates/targets.cmake.ezt
  (swig): Use target_link_libraries to add dependencies for the targets.

Modified:
    subversion/branches/cmake/build/generator/templates/targets.cmake.ezt

Modified: subversion/branches/cmake/build/generator/templates/targets.cmake.ezt
URL: http://svn.apache.org/viewvc/subversion/branches/cmake/build/generator/templates/targets.cmake.ezt?rev=1919755&r1=1919754&r2=1919755&view=diff
==============================================================================
--- subversion/branches/cmake/build/generator/templates/targets.cmake.ezt (original)
+++ subversion/branches/cmake/build/generator/templates/targets.cmake.ezt Thu Aug  8 17:22:48 2024
@@ -29,6 +29,10 @@ if ([targets.enable_condition])[is targe
   set_target_properties([targets.name] PROPERTIES
     SWIG_INCLUDE_DIRECTORIES "${SWIG_INCLUDE_DIRECTORIES}"
     INCLUDE_DIRECTORIES "${SWIG_INCLUDE_DIRECTORIES}"
+  )
+  target_link_libraries([targets.name] PRIVATE[for targets.libs]
+    [targets.libs][end]
+    external-[targets.swig_lang]
   )[else][is targets.type "lib"]
   add_library([targets.name][if-any targets.build_type] [targets.build_type][end][for targets.sources]
     [targets.sources][end]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.