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

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
Author: rinrab
Date: Fri Jul 19 19:06:07 2024
New Revision: 1919379

URL: http://svn.apache.org/viewvc?rev=1919379&view=rev
Log:
On the 'cmake' branch: Support modular DSO.

* CMakeLists.txt: Add SVN_USE_DSO option and setup definitions for it.

Modified:
    subversion/branches/cmake/CMakeLists.txt

Modified: subversion/branches/cmake/CMakeLists.txt
URL: http://svn.apache.org/viewvc/subversion/branches/cmake/CMakeLists.txt?rev=1919379&r1=1919378&r2=1919379&view=diff
==============================================================================
--- subversion/branches/cmake/CMakeLists.txt (original)
+++ subversion/branches/cmake/CMakeLists.txt Fri Jul 19 19:06:07 2024
@@ -77,6 +77,7 @@ option(BUILD_SHARED_LIBS "Build using sh
 option(SVN_BUILD_SHARED_FS "Build shared FS modules" ${BUILD_SHARED_LIBS})
 option(SVN_BUILD_SHARED_RA "Build shared RA modules" OFF)
 option(SVN_DEBUG "Enables specific features for developer builds" OFF)
+option(SVN_USE_DSO "Defined if svn should try to load DSOs" OFF)
 
 # Dependecies
 option(SVN_USE_INTERNAL_LZ4 "Use internal version of lz4" ON)
@@ -124,6 +125,12 @@ if (SVN_DEBUG)
   add_compile_definitions("SVN_DEBUG")
 endif()
 
+if(SVN_USE_DSO)
+  add_compile_definitions("SVN_USE_DSO")
+  add_compile_definitions("SVN_DSO_SUFFIX_FMT=\"%%d${CMAKE_SHARED_LIBRARY_SUFFIX}\"")
+  add_compile_definitions("SVN_SOVERSION=1")
+endif()
+
 if (SVN_BUILD_TESTS)
   enable_testing()
 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.