Author: rinrab
Date: Fri Jun 28 13:10:00 2024
New Revision: 1918730

URL: http://svn.apache.org/viewvc?rev=1918730&view=rev
Log:
On the 'cmake' branch: Setup Win32 specific compile definitions.

When building for Windows, it's required to setup alias from 'alloca' to
'_alloca' and add 'WIN32' definitions. This behavior was in VC.Net generator.

* build/generator/templates/CMakeLists.txt.ezt
  (): When targeting Windows, use add_compile_definitions() to setup them.

Modified:
    subversion/branches/cmake/build/generator/templates/CMakeLists.txt.ezt

Modified: subversion/branches/cmake/build/generator/templates/CMakeLists.txt.ezt
URL: 
http://svn.apache.org/viewvc/subversion/branches/cmake/build/generator/templates/CMakeLists.txt.ezt?rev=1918730&r1=1918729&r2=1918730&view=diff
==============================================================================
--- subversion/branches/cmake/build/generator/templates/CMakeLists.txt.ezt 
(original)
+++ subversion/branches/cmake/build/generator/templates/CMakeLists.txt.ezt Fri 
Jun 28 13:10:00 2024
@@ -13,6 +13,13 @@ set(SVN_INCLUDE_DIRECTORIES
   "${CMAKE_CURRENT_SOURCE_DIR}/subversion/include"
   "${CMAKE_CURRENT_BINARY_DIR}"
 )
+
+if (WIN32)
+  add_compile_definitions(
+    "alloca=_alloca"
+    "WIN32"
+  )
+endif()
 [for targets][is targets.type "lib"]
 add_library([targets.name][for targets.sources]
   [targets.sources][end]


Reply via email to