openbabel: add CMake patch for 3.1.1 (#43612)

This commit is contained in:
Rocco Meli 2024-04-15 17:07:54 +02:00 committed by GitHub
parent cb16b8a047
commit 7019e4e3cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,15 @@
diff --git a/src/config.h.cmake b/src/config.h.cmake
index 1c59c6769..26e5dde94 100644
--- a/src/config.h.cmake
+++ b/src/config.h.cmake
@@ -182,8 +182,8 @@
#define OB_MODULE_PATH "@OB_MODULE_PATH@"
#ifndef TIME_WITH_SYS_TIME
- #ifdef HAVE_SYS_TIME
- #ifdef HAVE_TIME
+ #ifdef HAVE_SYS_TIME_H
+ #ifdef HAVE_TIME_H
#define TIME_WITH_SYS_TIME 1
#else
#define TIME_WITH_SYS_TIME 0

View file

@ -58,6 +58,9 @@ class Openbabel(CMakePackage):
# Convert tabs to spaces. Allows unit tests to pass
patch("testpdbformat-tabs-to-spaces.patch", when="@:2.4.1")
# https://github.com/openbabel/openbabel/pull/2493
patch("cmake-time.patch", when="@3.1.1")
def cmake_args(self):
spec = self.spec
args = []