forked from pool/cadabra2
Atri Bhattacharya
cf94860cd3
* Add _service file to fetch sources from git to allow submodules to be included in tarball. * Add patches to fix build: cadabra2-cmake-correct-python-variable.patch, cadabra2-use-system-pybind11.patch, cadabra2-link-gmp.patch. * Drop cadabra2-link-python.patch: upstreamed. * Drop use of %suse_update_desktop_file: no longer needed. * Drop appdata file included as Source1, bundled files are now installed correctly. * Use python-rpm-macros and setup to build with newer pythons on Leap 15.X (does not yet work due to unavailability of python311-sympy and python311-ipykernel on these distros). OBS-URL: https://build.opensuse.org/package/show/science/cadabra2?expand=0&rev=60
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)
|