svn commit: r1932707 - subversion/trunk/build/generator

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <177506407832.1760414.2966333800949915002@svn03-he-fi>
Author: rinrab
Date: Wed Apr  1 17:21:18 2026
New Revision: 1932707

Log:
Follow-up to r1932705: svnbrowse is an executable target, not a library, so the
check should be done accordingly.

* build/generator/gen_cmake.py
  (get_target_conditions): Move check to the right category.

Modified:
   subversion/trunk/build/generator/gen_cmake.py

Modified: subversion/trunk/build/generator/gen_cmake.py
==============================================================================
--- subversion/trunk/build/generator/gen_cmake.py	Wed Apr  1 17:14:18 2026	(r1932706)
+++ subversion/trunk/build/generator/gen_cmake.py	Wed Apr  1 17:21:18 2026	(r1932707)
@@ -79,8 +79,6 @@ def get_target_conditions(target):
       enable_condition.append("SVN_ENABLE_AUTH_KWALLET")
     elif target.name == "libsvn_auth_gnome_keyring":
       enable_condition.append("SVN_ENABLE_AUTH_GNOME_KEYRING")
-    elif target.name == "svnbrowse":
-      enable_condition.append("SVN_ENABLE_TUI")
 
   if isinstance(target, gen_base.TargetExe):
     if target.install == "test" or target.install == "sub-test":
@@ -90,6 +88,9 @@ def get_target_conditions(target):
     else:
       enable_condition.append("SVN_ENABLE_PROGRAMS")
 
+    if target.name == "svnbrowse":
+      enable_condition.append("SVN_ENABLE_TUI")
+
   if isinstance(target, gen_base.TargetSWIG) or \
      isinstance(target, gen_base.TargetSWIGLib):
     enable_condition.append("SVN_ENABLE_SWIG_" + target.lang.upper())
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.