Always look for qpa/qplatformnativeinterface.h

This commit is contained in:
Jonas Kvinge 2021-08-14 20:00:27 +02:00
parent ecf2c50a26
commit 75c94ae092
1 changed files with 6 additions and 8 deletions

View File

@ -241,7 +241,6 @@ if(X11_FOUND)
message(WARNING, "Missing X11/XF86keysym.h")
endif()
if(BUILD_WITH_QT5 OR (BUILD_WITH_QT6 AND Qt6Core_VERSION VERSION_LESS 6.2.0))
find_path(QPA_QPLATFORMNATIVEINTERFACE_H qpa/qplatformnativeinterface.h PATHS ${Qt${QT_VERSION_MAJOR}Gui_PRIVATE_INCLUDE_DIRS})
if(QPA_QPLATFORMNATIVEINTERFACE_H)
set(HAVE_QPA_QPLATFORMNATIVEINTERFACE_H ON)
@ -249,7 +248,6 @@ if(X11_FOUND)
else()
message(STATUS "Missing qpa/qplatformnativeinterface.h header.")
endif()
endif()
endif(X11_FOUND)
option(USE_TAGLIB "Build with TagLib" OFF)