cadabra2/cadabra2-use-system-pybind11.patch
Atri Bhattacharya 8691ac3335 * Update to version 2.5.10.
* New BuildRequires: pkgconfig(openssl)
* Add MicroTeX as separate tarball: this is missed by upstream git as a submodule, so obs_scm _service's `enable_submodules` is unable to include it either.
* Drop cadabra2-default-python-path.patch: no longer needed after changes to upstream logic for finding python.

OBS-URL: https://build.opensuse.org/package/show/science/cadabra2?expand=0&rev=66
2025-03-06 14:02:56 +00:00

21 lines
660 B
Diff

---
CMakeLists.txt | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Index: cadabra2-2.5.4/CMakeLists.txt
===================================================================
--- cadabra2-2.5.4.orig/CMakeLists.txt
+++ cadabra2-2.5.4/CMakeLists.txt
@@ -297,7 +297,10 @@ set(PYTHON_POSTFIX "3")
# message(STATUS "Building for use with Python 3 (good!)")
find_package(Python COMPONENTS Interpreter Development)
-add_subdirectory(libs/pybind11)
+find_package(pybind11 CONFIG)
+if (NOT pybind11_FOUND)
+ add_subdirectory(libs/pybind11)
+endif()
message(STATUS "Found python ${PYTHON_LIBRARIES}")
#find_package (Python COMPONENTS Interpreter)