summaryrefslogtreecommitdiffstats
path: root/meta-openembedded/meta-oe/recipes-support/opencv/opencv/0001-Dont-use-isystem.patch
blob: bf0b80a30bdd8abc7e2cc905899f7ad15daabe7e (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
26
27
28
29
30
From 7144c44ec70dee73a628463b99ffeed74b1a8ef6 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 11 Sep 2018 00:21:18 -0700
Subject: [PATCH] Dont use isystem

clang really does not like it

Upstream-Status: Pending

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 cmake/OpenCVPCHSupport.cmake | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cmake/OpenCVPCHSupport.cmake b/cmake/OpenCVPCHSupport.cmake
index f9b1b48b65..fe27a136f5 100644
--- a/cmake/OpenCVPCHSupport.cmake
+++ b/cmake/OpenCVPCHSupport.cmake
@@ -18,6 +18,8 @@ IF(CV_GCC)
         SET(PCHSupport_FOUND TRUE)
     ENDIF()
 
+    SET(CMAKE_INCLUDE_SYSTEM_FLAG_C "-I")
+    SET(CMAKE_INCLUDE_SYSTEM_FLAG_CXX "-I")
     SET(_PCH_include_prefix "-I")
     SET(_PCH_isystem_prefix "-isystem")
     SET(_PCH_define_prefix "-D")
-- 
2.18.0

OpenPOWER on IntegriCloud