WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
143304
[CMake][GTK] Use the right variable to include the Wayland headers.
https://bugs.webkit.org/show_bug.cgi?id=143304
Summary
[CMake][GTK] Use the right variable to include the Wayland headers.
Carlos Alberto Lopez Perez
Reported
2015-04-01 06:12:52 PDT
The find_package command (as used in FindWayland.cmake) will define a number of variables if the package has been found: <NAME>_FOUND <NAME>_INCLUDE_DIRS or <NAME>_INCLUDES <NAME>_LIBRARIES or <NAME>_LIBRARIES or <NAME>_LIBS <NAME>_DEFINITIONS All this takes place in the Find<name>.cmake file.
http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries
However, when adding the path for the include directory for the wayland library, we are using WAYLAND_INCLUDE_DIRECTORIES which is undefined (empty) instead of WAYLAND_INCLUDE_DIRS. Usually the wayland include directory is the standard system one (/usr/lib), that explains why this has been unnoticed so far. There is no need to include the system default include path. Only when using a different include directory for the wayland headers this could break. PS: Note how all the other includes for libraries are using the <NAME>_INCLUDE_DIRS variable $ grep INCLUDE_DIRS Source/WebCore/PlatformGTK.cmake
Attachments
Patch
(1.24 KB, patch)
2015-04-01 06:18 PDT
,
Carlos Alberto Lopez Perez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Alberto Lopez Perez
Comment 1
2015-04-01 06:18:13 PDT
Created
attachment 249916
[details]
Patch
Carlos Garcia Campos
Comment 2
2015-04-01 06:43:17 PDT
Comment on
attachment 249916
[details]
Patch Good catch!
WebKit Commit Bot
Comment 3
2015-04-01 07:31:07 PDT
Comment on
attachment 249916
[details]
Patch Clearing flags on attachment: 249916 Committed
r182232
: <
http://trac.webkit.org/changeset/182232
>
WebKit Commit Bot
Comment 4
2015-04-01 07:31:11 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug