cmake: GH1444, add wayland include dir to cmake
authorThomas Heijligen <src@posteo.de>
Wed, 8 Feb 2017 09:44:29 +0000 (10:44 +0100)
committerMark Lobodzinski <mark@lunarg.com>
Wed, 8 Feb 2017 19:58:21 +0000 (12:58 -0700)
On some Linux distributions (e.g  openSUSE, Fedora) the wayland headers are in
a subdirectory.
Adding WAYLAND_CLIENT_INCLUDE_DIR to include_directories in CMakeLists.txt
will fix this issue.

CMakeLists.txt

index 494dd59..5809c6f 100644 (file)
@@ -33,6 +33,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
 
     if (BUILD_WSI_WAYLAND_SUPPORT)
         find_package(Wayland REQUIRED)
+        include_directories(${WAYLAND_CLIENT_INCLUDE_DIR})
     endif()
 
     if (BUILD_WSI_MIR_SUPPORT)