From ef72b3273e6d77e154f85f9f43dc07b702d32833 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 20 May 2021 17:10:08 +0200 Subject: [PATCH] Move private Qt GUI include --- CMakeLists.txt | 1 - src/CMakeLists.txt | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a2b3383e..5cce3d29a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -217,7 +217,6 @@ if(X11_FOUND) 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) - include_directories(${Qt${QT_VERSION_MAJOR}Gui_PRIVATE_INCLUDE_DIRS}) message(STATUS "Have qpa/qplatformnativeinterface.h header.") else() message(STATUS "Missing qpa/qplatformnativeinterface.h header.") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3bdf5fce8..2bbc99c0e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1131,6 +1131,10 @@ target_include_directories(strawberry_lib SYSTEM PUBLIC ${TAGLIB_INCLUDE_DIRS} ) +if(HAVE_QPA_QPLATFORMNATIVEINTERFACE_H) + target_include_directories(strawberry_lib SYSTEM PUBLIC ${Qt${QT_VERSION_MAJOR}Gui_PRIVATE_INCLUDE_DIRS}) +endif() + target_include_directories(strawberry_lib PUBLIC ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}