From b99f74c8e86c5c449ce4b9e362ff26f08a90921c Mon Sep 17 00:00:00 2001 From: Chris Want Date: Mon, 15 Dec 2008 17:47:57 +0000 Subject: Make sure that WITH_OPENEXR is defined when sources are configured with OpenEXR in the CMake system. This is a compilation fix from Miguel A. Figueroa Villanueva for building Debug versions of Blender using OpenEXR (thanks!). --- source/blender/imbuf/intern/openexr/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/intern/openexr/CMakeLists.txt b/source/blender/imbuf/intern/openexr/CMakeLists.txt index bb1dad087f3..21792086774 100644 --- a/source/blender/imbuf/intern/openexr/CMakeLists.txt +++ b/source/blender/imbuf/intern/openexr/CMakeLists.txt @@ -38,5 +38,9 @@ SET(INC ${OPENEXR_INC} ) +IF(WITH_OPENEXR) + ADD_DEFINITIONS(-DWITH_OPENEXR) +ENDIF(WITH_OPENEXR) + BLENDERLIB(bf_openexr "${SRC}" "${INC}") #env.BlenderLib ('bf_openexr', source_files, incs, defs, libtype=['core','player'], priority = [90, 200]) -- cgit v1.2.3