Author: jun66j5
Date: Sun Mar 29 01:32:13 2026
New Revision: 1932649

Log:
cmake: Follow-up to r1932395, fix build failing with cmake 3.31 on
windows-latest.

* CMakeLists.txt
  (SQLite3):
    Bind directly to external-sqlite rather than the intermediate alias.

Review by: rinrab

Modified:
   subversion/trunk/CMakeLists.txt

Modified: subversion/trunk/CMakeLists.txt
==============================================================================
--- subversion/trunk/CMakeLists.txt     Sun Mar 29 00:00:11 2026        
(r1932648)
+++ subversion/trunk/CMakeLists.txt     Sun Mar 29 01:32:13 2026        
(r1932649)
@@ -349,12 +349,12 @@ else()
   if(SQLite3_FOUND)
     # Support for CMake < 4.3
     # In prior versions of cmake, the sqlite targets were exported in the
-    # SQLite namespace, which was then changed to SQLite3.
-    if(NOT TARGET SQLite3::SQLite3)
-      add_library(SQLite3::SQLite3 ALIAS SQLite::SQLite3)
+    # SQLite namespace.
+    if(TARGET SQLite3::SQLite3)
+      add_library(external-sqlite ALIAS SQLite3::SQLite3)
+    else()
+      add_library(external-sqlite ALIAS SQLite::SQLite3)
     endif()
-
-    add_library(external-sqlite ALIAS SQLite3::SQLite3)
   else()
     find_package(SQLiteAmalgamation REQUIRED)
     add_library(external-sqlite ALIAS SQLite::SQLite3Amalgamation)

Reply via email to