gentoo-ebuilds/media-libs/opencv/files/opencv-4.11.0-cmake-CMP0177.patch
Paul Zander b9d43224ed
media-libs/opencv: add 4.11.0
Bug: https://bugs.gentoo.org/947031
Closes: https://bugs.gentoo.org/953397
Closes: https://bugs.gentoo.org/953304
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/41967
Signed-off-by: Sam James <sam@gentoo.org>
2025-05-08 07:26:48 +01:00

25 lines
867 B
Diff

From 52f444cad7741da4321cee4896c4d6befa538058 Mon Sep 17 00:00:00 2001
From: Paul Zander <negril.nx+gentoo@gmail.com>
Date: Sun, 12 Jan 2025 21:44:46 +0100
Subject: [PATCH] CMP0177
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt
index 6a18b61..042da87 100644
--- a/samples/CMakeLists.txt
+++ b/samples/CMakeLists.txt
@@ -10,8 +10,9 @@ include("${CMAKE_CURRENT_LIST_DIR}/samples_utils.cmake")
function(ocv_install_example_src relpath)
if(INSTALL_C_EXAMPLES)
file(GLOB files ${ARGN})
+ cmake_path(SET install_dir NORMALIZE "${OPENCV_SAMPLES_SRC_INSTALL_PATH}/${relpath}" )
install(FILES ${files}
- DESTINATION "${OPENCV_SAMPLES_SRC_INSTALL_PATH}/${relpath}"
+ DESTINATION "${install_dir}"
COMPONENT samples)
endif()
endfunction()
--
2.48.0