svn commit: r1920460 - /subversion/branches/cmake/CMakeLists.txt

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
Author: rinrab
Date: Wed Sep  4 12:30:11 2024
New Revision: 1920460

URL: http://svn.apache.org/viewvc?rev=1920460&view=rev
Log:
On the 'cmake' branch: SWIG python: explicitly specify the target filename
when coping __init__.py to libsvn directory. This prevents a bug when the
file is being copied before the directory is created and it will be renamed
into 'libsvn' in this case.

* CMakeLists.txt
  (swig.python): Explicitly specify the target filename of the
   libsvn/__init__.py file.

Modified:
    subversion/branches/cmake/CMakeLists.txt

Modified: subversion/branches/cmake/CMakeLists.txt
URL: http://svn.apache.org/viewvc/subversion/branches/cmake/CMakeLists.txt?rev=1920460&r1=1920459&r2=1920460&view=diff
==============================================================================
--- subversion/branches/cmake/CMakeLists.txt (original)
+++ subversion/branches/cmake/CMakeLists.txt Wed Sep  4 12:30:11 2024
@@ -584,7 +584,7 @@ if(SVN_ENABLE_SWIG_PYTHON)
   add_custom_command(TARGET libsvn_swig_py POST_BUILD
     COMMAND ${CMAKE_COMMAND} -E copy
       "${CMAKE_CURRENT_SOURCE_DIR}/subversion/bindings/swig/python/__init__.py"
-      "$<TARGET_FILE_DIR:libsvn_swig_py>/PythonPackages/libsvn"
+      "$<TARGET_FILE_DIR:libsvn_swig_py>/PythonPackages/libsvn/__init__.py"
   )
 endif()
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.