Commit 1c55fefe authored by Antonio Rojas's avatar Antonio Rojas Committed by Dmitry Kazakov
Browse files

Fix OpenColorIO include dir detection

This has been broken forever. There was a missing PATHS keyword so the output was a random, meaningless dir.
Compilation worked anyway because the includes were hardcoded to the default OCIO header install dir.
But as soon as OCIO is installed to a non-default path, it breaks down.
parent 38b9dfa6
......@@ -27,6 +27,7 @@ if(OCIO_LIBRARY_PATH)
endif()
find_path(OCIO_INCLUDE_DIR OpenColorIO.h
PATHS
${OCIO_INCLUDE_PATH}
${OCIO_PATH}/include/
/usr/include
......
......@@ -37,8 +37,8 @@
#include <config-ocio.h>
#ifdef HAVE_OCIO
#include <OpenColorIO/OpenColorIO.h>
#include <OpenColorIO/OpenColorTransforms.h>
#include <OpenColorIO.h>
#include <OpenColorTransforms.h>
#endif
#define ORIGINAL_INDEX 0
......
......@@ -37,7 +37,7 @@
#include "lutdocker_dock.h"
#include <KoDockRegistry.h>
#include <OpenColorIO/OpenColorIO.h>
#include <OpenColorIO.h>
namespace OCIO = OCIO_NAMESPACE;
......
......@@ -32,7 +32,7 @@
#include "ui_wdglut.h"
#include <OpenColorIO/OpenColorIO.h>
#include <OpenColorIO.h>
#include "kis_signal_compressor_with_param.h"
......
......@@ -19,8 +19,8 @@
#define OCIO_DISPLAY_FILTER_H
#include <kis_display_filter.h>
#include <OpenColorIO/OpenColorIO.h>
#include <OpenColorIO/OpenColorTransforms.h>
#include <OpenColorIO.h>
#include <OpenColorTransforms.h>
#include <QVector>
#include "kis_exposure_gamma_correction_interface.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment