summaryrefslogtreecommitdiff
path: root/media-libs/opencv/files/opencv-4.11.0-cmake-CMP0177.patch
blob: 240d3c5a512ff2e8fc8a693977fd2b463a692fcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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