mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-09 06:35:19 +02:00
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>
25 lines
867 B
Diff
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
|
|
|