File viskores-ViskoresConfig.cmake-parametrize-libdir-component-in.patch of Package viskores

From c579b4b05fee0d6aaa2552bce5b728bc82793186 Mon Sep 17 00:00:00 2001
From: Vicente Adolfo Bolea Sanchez <vicente.bolea@kitware.com>
Date: Mon, 20 Oct 2025 15:57:46 -0400
Subject: [PATCH 2/2] ViskoresConfig.cmake: parametrize libdir component in its
 install path

---
 CMakeLists.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2ef64ce30..ec243cc1a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -52,12 +52,12 @@ determine_version(${Viskores_SOURCE_DIR} ${GIT_EXECUTABLE} "Viskores")
 if (NOT DEFINED Viskores_INSTALL_INCLUDE_DIR)
   set(Viskores_INSTALL_INCLUDE_DIR "include/viskores-${Viskores_VERSION_MAJOR}.${Viskores_VERSION_MINOR}")
 endif()
-if (NOT DEFINED Viskores_INSTALL_CONFIG_DIR)
-  set(Viskores_INSTALL_CONFIG_DIR "lib/cmake/viskores-${Viskores_VERSION_MAJOR}.${Viskores_VERSION_MINOR}")
-endif()
 if (NOT DEFINED Viskores_INSTALL_LIB_DIR)
   set(Viskores_INSTALL_LIB_DIR "lib")
 endif()
+if (NOT DEFINED Viskores_INSTALL_CONFIG_DIR)
+  set(Viskores_INSTALL_CONFIG_DIR "${Viskores_INSTALL_LIB_DIR}/cmake/viskores-${Viskores_VERSION_MAJOR}.${Viskores_VERSION_MINOR}")
+endif()
 if (NOT DEFINED Viskores_INSTALL_BIN_DIR)
   set(Viskores_INSTALL_BIN_DIR "bin")
 endif()
-- 
2.51.0

openSUSE Build Service is sponsored by