Mir

Merge lp:~kgunn72/mir/add_system_to_include_dirs into lp:mir

Proposed by kevin gunn
Status: Merged
Approved by: Alberto Aguirre
Approved revision: no longer in the source branch.
Merged at revision: 3158
Proposed branch: lp:~kgunn72/mir/add_system_to_include_dirs
Merge into: lp:mir
Diff against target: 25 lines (+4/-4)
1 file modified
CMakeLists.txt (+4/-4)
To merge this branch: bzr merge lp:~kgunn72/mir/add_system_to_include_dirs
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Alan Griffiths Approve
Alberto Aguirre (community) Approve
Kevin DuBois (community) Needs Information
Review via email: mp+278093@code.launchpad.net

Commit message

add SYSTEM to system directories

Description of the change

In order to be able to build with snapcraft with all dependencies installed in a local project directory, SYSTEM needs to be used for directories for items that would normally be installed on the system. Otherwise, cmake will treat these directories as non-system, which causes their warnings to be interpreted as compile errors and fail to build.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Kevin DuBois (kdub) wrote :

EGL/GL didn't have clean enough headers to use -I?

review: Needs Information
Revision history for this message
kevin gunn (kgunn72) wrote :

Not that EGL/GL headers change, but this future proofs that. EGL/GL is something that actually _is_ part of the system so I added it.
I honestly didn't try, but I can swap it out and try if you think we shouldn't.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

LGTM.

review: Approve
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

OK

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alberto Aguirre (albaguirre) wrote :

"[ 17%] Building CXX object src/platforms/android/server/CMakeFiles/mirplatformgraphicsandroidobjects.dir/display_buffer.cpp.o
Build timed out (after 120 minutes). Marking the build as failed."

Umm looks like just a CI hiccup. Let's try again.

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2015-10-16 06:12:44 +0000
3+++ CMakeLists.txt 2015-11-20 01:22:19 +0000
4@@ -125,7 +125,7 @@
5
6 # Check for boost
7 find_package(Boost 1.48.0 COMPONENTS date_time system program_options filesystem REQUIRED)
8-include_directories (
9+include_directories (SYSTEM
10 ${Boost_INCLUDE_DIRS}
11 )
12
13@@ -179,9 +179,9 @@
14 pkg_check_modules(NETTLE REQUIRED nettle)
15 pkg_check_modules(UUID REQUIRED uuid)
16
17-include_directories (${GLESv2_INCLUDE_DIRS})
18-include_directories (${EGL_INCLUDE_DIRS})
19-include_directories (${GLM_INCLUDE_DIRS})
20+include_directories (SYSTEM ${GLESv2_INCLUDE_DIRS})
21+include_directories (SYSTEM ${EGL_INCLUDE_DIRS})
22+include_directories (SYSTEM ${GLM_INCLUDE_DIRS})
23
24 if (MIR_BUILD_PLATFORM_ANDROID)
25 find_package(AndroidProperties REQUIRED)

Subscribers

People subscribed via source and target branches