forked from pool/xtensor-python
- BuildRequires: python3-sphinx_rtd_theme to fix Factory build
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/xtensor-python?expand=0&rev=7
This commit is contained in:
30
0001-Install-as-arch-independent.patch
Normal file
30
0001-Install-as-arch-independent.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
From 627ff935c580e5d43824b5ec884502e8b9811394 Mon Sep 17 00:00:00 2001
|
||||
From: "Matwey V. Kornilov" <matwey.kornilov@gmail.com>
|
||||
Date: Mon, 6 May 2024 20:57:19 +0300
|
||||
Subject: [PATCH] Install as arch-independent
|
||||
|
||||
xternsor-python is header only library, so prefer arch-independed paths cmake.
|
||||
|
||||
References:
|
||||
* https://github.com/xtensor-stack/xtl/commit/d877d94836aff4d0f727acf3eaab8f4880ecb625
|
||||
* https://github.com/xtensor-stack/xtensor/commit/7738389861044c9618c7d59fb7602f7dddc1df7f
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 6521c98..47af271 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -123,7 +123,7 @@ export(EXPORT ${PROJECT_NAME}-targets
|
||||
install(FILES ${XTENSOR_PYTHON_HEADERS}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/xtensor-python)
|
||||
|
||||
-set(XTENSOR_PYTHON_CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}" CACHE
|
||||
+set(XTENSOR_PYTHON_CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/cmake/${PROJECT_NAME}" CACHE
|
||||
STRING "install path for xtensor-pythonConfig.cmake")
|
||||
|
||||
configure_package_config_file(${PROJECT_NAME}Config.cmake.in
|
||||
--
|
||||
2.44.0
|
||||
|
||||
Reference in New Issue
Block a user