]> git.pld-linux.org Git - packages/opencv.git/blame - opencv-cmake.patch
- release 6 (by relup.sh)
[packages/opencv.git] / opencv-cmake.patch
CommitLineData
dadee467
JB
1--- opencv-2.4.11/samples/gpu/CMakeLists.txt.orig 2015-02-25 13:10:31.000000000 +0100
2+++ opencv-2.4.11/samples/gpu/CMakeLists.txt 2015-05-19 18:35:11.803554049 +0200
3@@ -4,6 +4,15 @@
4 opencv_superres)
5 ocv_check_dependencies(${OPENCV_GPU_SAMPLES_REQUIRED_DEPS})
6
7+# remove all matching elements from the list
8+MACRO(list_filterout lst regex)
9+ foreach(item ${${lst}})
10+ if(item MATCHES "${regex}")
11+ list(REMOVE_ITEM ${lst} "${item}")
12+ endif()
13+ endforeach()
14+ENDMACRO()
15+
16 if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
17 set(project "gpu")
18 string(TOUPPER "${project}" project_upper)
19@@ -69,15 +78,6 @@
20 endif()
21 ENDMACRO()
22
23- # remove all matching elements from the list
24- MACRO(list_filterout lst regex)
25- foreach(item ${${lst}})
26- if(item MATCHES "${regex}")
27- list(REMOVE_ITEM ${lst} "${item}")
28- endif()
29- endforeach()
30- ENDMACRO()
31-
32 file(GLOB all_samples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
33
34 if(NOT HAVE_OPENGL)
This page took 0.038142 seconds and 4 git commands to generate.