SHA256
1
0
forked from pool/cadabra2
cadabra2/cadabra2-link-gmp.patch
Atri Bhattacharya cf94860cd3 * Update to version 2.5.2.
* 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
2024-08-17 05:14:25 +00:00

15 lines
703 B
Diff

Index: cadabra2-2.5.4/core/packages/CMakeLists.txt
===================================================================
--- cadabra2-2.5.4.orig/core/packages/CMakeLists.txt
+++ cadabra2-2.5.4/core/packages/CMakeLists.txt
@@ -67,7 +67,7 @@ foreach(PACKAGE ${COMPILED_PACKAGES})
set_target_properties(${PNAME} PROPERTIES SUFFIX ".${PYTHON_MOD_SUFFIX}")
set_target_properties(${PNAME} PROPERTIES INSTALL_RPATH "$ORIGIN/../../:$ORIGIN/../../../../")
- target_link_libraries(${PNAME} PUBLIC cadabra2 ${GMPXX_LIBRARIES})
+ target_link_libraries(${PNAME} PUBLIC cadabra2 ${GMPXX_LIBRARIES} ${GMP_LIBRARIES})
target_include_directories(${PNAME} PUBLIC ${CADABRA_CORE_DIR})
if(IPO_SUPPORTED)