* 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
21 lines
660 B
Diff
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)
|