Author: rinrab
Date: Mon Jul  8 17:54:43 2024
New Revision: 1919045

URL: http://svn.apache.org/viewvc?rev=1919045&view=rev
Log:
On the 'cmake' branch: Add SVN_DEBUG option and setup a definition based on it.

The SVN_DEBUG option could enable some developer features and log additional
information. Now, by passing `-DSVN_DEBUG=ON` argument to CMake, it would be
enabled. If this option is enabled, the define would be added for both, Debug
and Release configurations. The option is disabled by default.

SVN_DEBUG and just Debug are not the same things!!

* CMakeLists.txt
  (options): Add SVN_DEBUG option to cache and setup the same compile
   definition based on 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=1919045&r1=1919044&r2=1919045&view=diff
==============================================================================
--- subversion/branches/cmake/CMakeLists.txt (original)
+++ subversion/branches/cmake/CMakeLists.txt Mon Jul  8 17:54:43 2024
@@ -79,6 +79,11 @@ if (SVN_BUILD_FS_X)
   add_compile_definitions("SVN_LIBSVN_FS_LINKS_FS_X")
 endif()
 
+option(SVN_DEBUG "Enables specific features for developer builds" OFF)
+if (SVN_DEBUG)
+  add_compile_definitions("SVN_DEBUG")
+endif()
+
 option(SVN_BUILD_PROGRAMS "Build Subversion programs (such as svn.exe)" ON)
 option(SVN_BUILD_TOOLS "Build Subversion tools" OFF)
 option(SVN_BUILD_TEST "Build Subversion test-suite" OFF)


Reply via email to