summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/opencv/opencv/0001-Dont-use-isystem.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/opencv/opencv/0001-Dont-use-isystem.patch')
-rw-r--r--meta-oe/recipes-support/opencv/opencv/0001-Dont-use-isystem.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv/0001-Dont-use-isystem.patch b/meta-oe/recipes-support/opencv/opencv/0001-Dont-use-isystem.patch
new file mode 100644
index 000000000..bf0b80a30
--- /dev/null
+++ b/meta-oe/recipes-support/opencv/opencv/0001-Dont-use-isystem.patch
@@ -0,0 +1,30 @@
1From 7144c44ec70dee73a628463b99ffeed74b1a8ef6 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 11 Sep 2018 00:21:18 -0700
4Subject: [PATCH] Dont use isystem
5
6clang really does not like it
7
8Upstream-Status: Pending
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 cmake/OpenCVPCHSupport.cmake | 2 ++
13 1 file changed, 2 insertions(+)
14
15diff --git a/cmake/OpenCVPCHSupport.cmake b/cmake/OpenCVPCHSupport.cmake
16index f9b1b48b65..fe27a136f5 100644
17--- a/cmake/OpenCVPCHSupport.cmake
18+++ b/cmake/OpenCVPCHSupport.cmake
19@@ -18,6 +18,8 @@ IF(CV_GCC)
20 SET(PCHSupport_FOUND TRUE)
21 ENDIF()
22
23+ SET(CMAKE_INCLUDE_SYSTEM_FLAG_C "-I")
24+ SET(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-I")
25 SET(_PCH_include_prefix "-I")
26 SET(_PCH_isystem_prefix "-isystem")
27 SET(_PCH_define_prefix "-D")
28--
292.18.0
30