However, the cmake configuration system defines a compiler option for LibRaw header inclusion like this:
-IPREFIX/libraw
PREFIX is usually /usr/include for system-wide development files, but might be different if a custom LibRaw is being used, for example to have a version newer that the one supplied by the distribution.
However, due to the way the LibRaw header in included in the sources, the one in /usr/include/libraw is always used regardless of the compiler options.
The fix is to include the LibRaw header in this way:
#include<libraw.h>
I've checked that this allows to pick the header from a custom LibRaw version under Linux, however I have not tested it on other platforms...
The sources include the LibRaw header this way:
However, the cmake configuration system defines a compiler option for LibRaw header inclusion like this:
PREFIX is usually /usr/include for system-wide development files, but might be different if a custom LibRaw is being used, for example to have a version newer that the one supplied by the distribution.
However, due to the way the LibRaw header in included in the sources, the one in /usr/include/libraw is always used regardless of the compiler options.
The fix is to include the LibRaw header in this way:
#include<libraw.h>
I've checked that this allows to pick the header from a custom LibRaw version under Linux, however I have not tested it on other platforms...