On 6. 6. 25 00:04, [email protected] wrote:
Author: brane
Date: Thu Jun  5 22:04:09 2025
New Revision: 1926164

URL:http://svn.apache.org/viewvc?rev=1926164&view=rev
Log:
* build/SerfPlatform.cmake: Add platform detection for OpenBSD.

Modified:
     serf/trunk/build/SerfPlatform.cmake

Modified: serf/trunk/build/SerfPlatform.cmake
URL:http://svn.apache.org/viewvc/serf/trunk/build/SerfPlatform.cmake?rev=1926164&r1=1926163&r2=1926164&view=diff
==============================================================================
--- serf/trunk/build/SerfPlatform.cmake (original)
+++ serf/trunk/build/SerfPlatform.cmake Thu Jun  5 22:04:09 2025
@@ -38,6 +38,11 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Fre
    set(SERF_FREEBSD TRUE)
    set(SERF_ELF_TARGET TRUE)
    set(SERF_PLATFORM "FreeBSD")
+elseif(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
+  set(SERF_UNIX TRUE)
+  set(SERF_OPENBSD TRUE)
+  set(SERF_ELF_TARGET TRUE)
+  set(SERF_PLATFORM "OpenBSD")
  elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
    set(SERF_WINDOWS TRUE)
    if(CMAKE_GENERATOR_PLATFORM MATCHES "(x64|ARM64|IA64)")

Funny thing: on OpenBSD, CMake finds LibreSLL and then all our SSL-related tests /appear/ to fail -- but it's only due to slightly different error message formatting. Sigh. I suspect that I really don't want to go messing with the expected output in all those tests (100+!) just because someone decided that Open was not Libre enough and just had to make a fork -- then mess up backwards compatibility.

-- Brane

Reply via email to