Author: rinrab
Date: Mon Jun  9 13:02:23 2025
New Revision: 1926285

URL: http://svn.apache.org/viewvc?rev=1926285&view=rev
Log:
cmake: Fix NLS support on non-Windows platforms by correctly initialising
SVN_LOCALE_DIR.

- Maybe using CMAKE_INSTALL_PREFIX to prefix this path is not the perfect
  resolution, since the install prefix can be changed by `cmake install
  --prefix`. However, I cannot find anything better. The same approach seems
  to be applied in autoconf as well.

* CMakeLists.txt
  (nls): Add SVN_LOCALE_DIR to the private config.

Modified:
    subversion/trunk/CMakeLists.txt

Modified: subversion/trunk/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/subversion/trunk/CMakeLists.txt?rev=1926285&r1=1926284&r2=1926285&view=diff
==============================================================================
--- subversion/trunk/CMakeLists.txt (original)
+++ subversion/trunk/CMakeLists.txt Mon Jun  9 13:02:23 2025
@@ -724,6 +724,13 @@ if(SVN_ENABLE_NLS)
     "ENABLE_NLS" "1"
   )
 
+  if (NOT WIN32)
+    add_private_config_definition(
+      "Defined to be the path to the installed locale dirs"
+      "SVN_LOCALE_DIR" "\"${CMAKE_INSTALL_PREFIX}/share/locale\""
+    )
+  endif()
+
   add_custom_target(locale ALL)
 
   file(GLOB SVN_PO_FILES "subversion/po/*.po")


Reply via email to