osrm-backend: add osrm routing backend recipe
[AGL/meta-agl-demo.git] / recipes-navigation / osrm-backend / files / 0001-cmake-fix-search-paths-for-OE-building.patch
1 From a45781fbd39426c0be6d57dcce7ce4679ee63b87 Mon Sep 17 00:00:00 2001
2 From: Matt Ranostay <matt.ranostay@konsulko.com>
3 Date: Fri, 3 Nov 2017 16:53:34 -0700
4 Subject: [PATCH] cmake: fix search paths for OE building
5
6 For gcc-6 -isystem breaks #include_next so put recipes
7 staging include directory before others
8
9 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
10 ---
11  CMakeLists.txt | 2 +-
12  1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/CMakeLists.txt b/CMakeLists.txt
15 index 175791651..c5a214102 100644
16 --- a/CMakeLists.txt
17 +++ b/CMakeLists.txt
18 @@ -113,6 +113,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
19    endif()
20  endif()
21  
22 +include_directories(BEFORE ${STAGING_DIR_HOST}/usr/include/)
23  include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR}/include/)
24  include_directories(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/include/)
25  include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/third_party/sol2/)
26 @@ -589,7 +590,6 @@ if (ENABLE_STXXL)
27  endif()
28  
29  add_definitions(${OSRM_DEFINES})
30 -include_directories(SYSTEM ${DEPENDENCIES_INCLUDE_DIRS})
31  
32  set(BOOST_BASE_LIBRARIES
33     ${Boost_DATE_TIME_LIBRARY}
34 -- 
35 2.14.2
36