Author: rinrab
Date: Tue Jul  9 20:00:04 2024
New Revision: 1919074

URL: http://svn.apache.org/viewvc?rev=1919074&view=rev
Log:
On the 'cmake' branch: Convert path to absolute when extracting version.

* CMakeLists.txt
  (read_version): Use get_filename_component(ABSOLUTE) function to convert
   path to absolute.

Modified:
    subversion/branches/cmake/CMakeLists.txt

Modified: subversion/branches/cmake/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/subversion/branches/cmake/CMakeLists.txt?rev=1919074&r1=1919073&r2=1919074&view=diff
==============================================================================
--- subversion/branches/cmake/CMakeLists.txt (original)
+++ subversion/branches/cmake/CMakeLists.txt Tue Jul  9 20:00:04 2024
@@ -20,6 +20,8 @@
 #
 
 function(read_version path var major minor patch)
+  get_filename_component(path ${path} ABSOLUTE)
+
   if (EXISTS ${path})
     file(
       STRINGS ${path} VERSION_STRINGS


Reply via email to