Second attempt at fixing the windows/craft build

Since libspectre includes reference themselves with libspectre/ change
the cmake find_path to also include libspectre/ when doing the include
path search
This commit is contained in:
Albert Astals Cid 2021-05-20 09:59:28 +02:00
parent 108e568d67
commit 99788b907e
3 changed files with 3 additions and 4 deletions

View file

@ -34,9 +34,8 @@ if(_pc_LIBSPECTRE_FOUND)
HINTS ${_pc_LIBSPECTRE_LIBRARY_DIRS} ${CMAKE_LIBRARY_PATH}
)
find_path(LIBSPECTRE_INCLUDE_DIR spectre.h
find_path(LIBSPECTRE_INCLUDE_DIR libspectre/spectre.h
HINTS ${_pc_LIBSPECTRE_INCLUDE_DIRS}
PATH_SUFFIXES libspectre
)
set(LIBSPECTRE_INTERNAL_FOUND TRUE)

View file

@ -13,7 +13,7 @@
#include <core/generator.h>
#include <interfaces/configinterface.h>
#include <spectre.h>
#include <libspectre/spectre.h>
class GSGenerator : public Okular::Generator, public Okular::ConfigInterface
{

View file

@ -16,7 +16,7 @@
#include <QString>
#include <QThread>
#include <spectre.h>
#include <libspectre/spectre.h>
class QImage;
class GSGenerator;