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

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
Author: rinrab
Date: Sun Jul 28 16:46:17 2024
New Revision: 1919565

URL: http://svn.apache.org/viewvc?rev=1919565&view=rev
Log:
On the 'cmake' branch: Add option and enable WIN32 crash handler.

This code and definitions had taken from build/generator/gen-win.py:744.

* CMakeLists.txt
  (options): Add SVN_USE_WIN32_CRASHHANDLER option and default it to if the
   platform is Windows.
  (...): Setup WIN32 crash handler if SVN_USE_WIN32_CRASHHANDLER.

Modified:
    subversion/branches/cmake/CMakeLists.txt

Modified: subversion/branches/cmake/CMakeLists.txt
URL: http://svn.apache.org/viewvc/subversion/branches/cmake/CMakeLists.txt?rev=1919565&r1=1919564&r2=1919565&view=diff
==============================================================================
--- subversion/branches/cmake/CMakeLists.txt (original)
+++ subversion/branches/cmake/CMakeLists.txt Sun Jul 28 16:46:17 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_WIN32_CRASHHANDLER "Enables WIN32 crash handler." ${WIN32})
 option(SVN_USE_DSO "Defined if svn should try to load DSOs" OFF)
 
 # Dependecies
@@ -451,6 +452,13 @@ if (SVN_BUILD_SVNXX)
   )
 endif()
 
+if(SVN_USE_WIN32_CRASHHANDLER)
+  target_compile_definitions(libsvn_subr PRIVATE
+    "SVN_USE_WIN32_CRASHHANDLER"
+    "SVN_WIN32_CRASHREPORT_EMAIL=\"[email protected]\""
+  )
+endif()
+
 string(TOLOWER "${CMAKE_HOST_SYSTEM_PROCESSOR}-${CMAKE_HOST_SYSTEM_NAME}" SVN_BUILD_HOST)
 string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}-${CMAKE_SYSTEM_NAME}" SVN_BUILD_TARGET)
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.