svn commit: r1936505 - subversion/trunk
[email protected] Wed, 22 Jul 2026 21:38:18 -0000
| Newsgroups | gmane.comp.version-control.subversion.svn |
|---|---|
| Message-ID | <178475629846.967846.8673709451788246828@svn03-he-fi> |
Author: jun66j5
Date: Wed Jul 22 21:38:18 2026
New Revision: 1936505
Log:
cmake: Use add_custom_target() with SOURCES parameter instead of
target_sources(). In prior to version 3.20 of cmake, target_sources() for a
custom target will fail.
* CMakeLists.txt
(locale): Ditto.
Modified:
subversion/trunk/CMakeLists.txt
Modified: subversion/trunk/CMakeLists.txt
==============================================================================
--- subversion/trunk/CMakeLists.txt Wed Jul 22 21:35:47 2026 (r1936504)
+++ subversion/trunk/CMakeLists.txt Wed Jul 22 21:38:18 2026 (r1936505)
@@ -464,9 +464,8 @@ if(SVN_ENABLE_NLS)
)
endif()
- add_custom_target(locale ALL)
-
file(GLOB SVN_PO_FILES "subversion/po/*.po")
+ set(SVN_MO_FILES)
foreach(po_file ${SVN_PO_FILES})
get_filename_component(lang ${po_file} NAME_WLE)
@@ -480,15 +479,15 @@ if(SVN_ENABLE_NLS)
COMMAND
"${GETTEXT_MSGFMT_EXECUTABLE}" -c -o ${mo_file} ${po_file}
)
-
- target_sources(locale PRIVATE ${mo_file})
-
+ list(APPEND SVN_MO_FILES ${mo_file})
install(
FILES "${mo_file}"
DESTINATION "share/locale/${lang}/LC_MESSAGES"
RENAME "subversion.mo"
)
endforeach()
+
+ add_custom_target(locale ALL SOURCES ${SVN_MO_FILES})
else()
# Declare empty target for Intl if we don't use it.
add_library(external-intl INTERFACE)