diff options
Diffstat (limited to 'source/blender/imbuf/intern/Makefile')
-rw-r--r-- | source/blender/imbuf/intern/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/Makefile b/source/blender/imbuf/intern/Makefile index 427052cbdc3..0f2020c799a 100644 --- a/source/blender/imbuf/intern/Makefile +++ b/source/blender/imbuf/intern/Makefile @@ -39,7 +39,7 @@ include nan_definitions.mk DIRS = cineon ifeq ($(WITH_OPENEXR), true) - DIRS += openexr + DIRS += openexr CFLAGS += -DWITH_OPENEXR endif @@ -49,7 +49,11 @@ ifeq ($(WITH_DDS), true) endif ifeq ($(WITH_OPENJPEG), true) - CFLAGS += -DWITH_OPENJPEG -I../../../../extern/libopenjpeg + ifndef BF_OPENJPEG_INC + CFLAGS += -DWITH_OPENJPEG -I../../../../extern/libopenjpeg + else + CFLAGS += -DWITH_OPENJPEG -I$(BF_OPENJPEG_INC) + endif endif CFLAGS += $(LEVEL_1_C_WARNINGS) |