Author: rinrab
Date: Thu Oct  3 15:58:41 2024
New Revision: 1921095

URL: http://svn.apache.org/viewvc?rev=1921095&view=rev
Log:
cmake: Setup defines to prevent some CRT warnings on Windows.

They are already set in gen-win generator, but weren't in CMake.

* CMakeLists.txt
  (msvc): Copy definitions here from gen-win.

Modified:
    subversion/trunk/CMakeLists.txt

Modified: subversion/trunk/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/subversion/trunk/CMakeLists.txt?rev=1921095&r1=1921094&r2=1921095&view=diff
==============================================================================
--- subversion/trunk/CMakeLists.txt (original)
+++ subversion/trunk/CMakeLists.txt Thu Oct  3 15:58:41 2024
@@ -568,6 +568,12 @@ if (MSVC)
   add_compile_options(/we4700)
   add_compile_options(/we4715)
   add_compile_options(/we4789)
+
+  add_compile_definitions(
+    "_CRT_SECURE_NO_DEPRECATE"
+    "_CRT_NONSTDC_NO_DEPRECATE"
+    "_CRT_SECURE_NO_WARNINGS"
+  )
 endif()
 
 if (NOT EXISTS "${CMAKE_SOURCE_DIR}/build/cmake/targets.cmake")


Reply via email to