That patch made no difference, unfortunately. Here's the output from my cmake command. CMakeError.log and CMakeOutput.log don't have anything that appears to be related to the failure to find gl2.h. In particular, the last lines in CMakeError.log refer to the hunt for pthreads, which appears to eventually succeed.
CMAKE_PREFIX_PATH="$SDKTARGETSYSROOT/usr/lib/cmake" cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$OECORE_NATIVE_SYSROOT/usr/share/cmake/OEToolchainConfig.cmake.d/OEQt5Toolchain.cmake" ../src
-- The C compiler identification is GNU 4.9.1
-- The CXX compiler identification is GNU 4.9.1
-- Check for working C compiler: /home/jenkins/slave-root/workspace/Dev-Demo-Viewer-Yocto/poky/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
-- Check for working C compiler: /home/jenkins/slave-root/workspace/Dev-Demo-Viewer-Yocto/poky/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /home/jenkins/slave-root/workspace/Dev-Demo-Viewer-Yocto/poky/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++
-- Check for working CXX compiler: /home/jenkins/slave-root/workspace/Dev-Demo-Viewer-Yocto/poky/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Building Demo Viewer version 1.0.0.0 using build type 'Release'.
-- Source directory is '/home/jenkins/slave-root/workspace/Dev-Demo-Viewer-Yocto/src'.
-- Build directory is '/home/jenkins/slave-root/workspace/Dev-Demo-Viewer-Yocto/build'.
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Error at /home/jenkins/slave-root/workspace/Dev-Demo-Viewer-Yocto/poky/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:10 (message):
Failed to find "GLES2/gl2.h" in "/usr/include/libdrm".
Call Stack (most recent call first):
/home/jenkins/slave-root/workspace/Dev-Demo-Viewer-Yocto/poky/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:158 (include)
/home/jenkins/slave-root/workspace/Dev-Demo-Viewer-Yocto/poky/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/cmake/Qt5Quick/Qt5QuickConfig.cmake:100 (find_package)
CMakeLists.txt:84 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/jenkins/slave-root/workspace/Dev-Demo-Viewer-Yocto/build/CMakeFiles/CMakeOutput.log".
See also "/home/jenkins/slave-root/workspace/Dev-Demo-Viewer-Yocto/build/CMakeFiles/CMakeError.log".