Author: rinrab
Date: Fri Oct 4 17:29:51 2024
New Revision: 1921116
URL: http://svn.apache.org/viewvc?rev=1921116&view=rev
Log:
cmake: Write an error when trying to enable auth_kwallet in static
configuration.
This configuration is not supported, because the authentication modules
requires shared libraries and are loaded as DSO.
* CMakeLists.txt
(kwallet): Add check for BUILD_SHARED_LIBS and error message if it is
set to be static.
Modified:
subversion/trunk/CMakeLists.txt
Modified: subversion/trunk/CMakeLists.txt
URL:
http://svn.apache.org/viewvc/subversion/trunk/CMakeLists.txt?rev=1921116&r1=1921115&r2=1921116&view=diff
==============================================================================
--- subversion/trunk/CMakeLists.txt (original)
+++ subversion/trunk/CMakeLists.txt Fri Oct 4 17:29:51 2024
@@ -137,6 +137,10 @@ if (SVN_ENABLE_FS_X)
endif()
if(SVN_ENABLE_AUTH_KWALLET)
+ if(NOT BUILD_SHARED_LIBS)
+ message(SEND_ERROR "SVN_ENABLE_AUTH_KWALLET is not supported in static
build.")
+ endif()
+
add_compile_definitions("SVN_HAVE_KWALLET")
endif()