svn commit: r1921383 - /subversion/trunk/CMakeLists.txt

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
Author: rinrab
Date: Thu Oct 17 13:26:06 2024
New Revision: 1921383

URL: http://svn.apache.org/viewvc?rev=1921383&view=rev
Log:
cmake: Fix MacOS build by defining DARWIN definition.

* CMakeLists.txt
  (definitions): Define DARWIN if compiling on APPLE platform.

Modified:
    subversion/trunk/CMakeLists.txt

Modified: subversion/trunk/CMakeLists.txt
URL: http://svn.apache.org/viewvc/subversion/trunk/CMakeLists.txt?rev=1921383&r1=1921382&r2=1921383&view=diff
==============================================================================
--- subversion/trunk/CMakeLists.txt (original)
+++ subversion/trunk/CMakeLists.txt Thu Oct 17 13:26:06 2024
@@ -634,6 +634,10 @@ if (WIN32)
   )
 endif()
 
+if(APPLE)
+  add_compile_definitions("DARWIN")
+endif()
+
 if (MSVC)
   # Setup warning level
   add_compile_options(/W4)
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.