From 10c50d7dbf7578b35b3bf19a1948f556f9eb203b Mon Sep 17 00:00:00 2001 From: Gaia Clary Date: Tue, 4 Dec 2018 19:11:33 +0100 Subject: fix T58568 build errors when using collada 1.6.68 or newer --- source/blender/collada/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source/blender/collada/CMakeLists.txt') diff --git a/source/blender/collada/CMakeLists.txt b/source/blender/collada/CMakeLists.txt index 293049a1a05..c250384b989 100644 --- a/source/blender/collada/CMakeLists.txt +++ b/source/blender/collada/CMakeLists.txt @@ -25,6 +25,18 @@ remove_strict_flags() +FIND_FILE(_opencollada_with_animation_clip + NAMES + COLLADAFWAnimationClip.h + PATHS + ${OPENCOLLADA_INCLUDE_DIRS} + NO_DEFAULT_PATH + ) + +IF(_opencollada_with_animation_clip) + add_compile_definitions(OPENCOLLADA_WITH_ANIMATION_CLIP) +ENDIF() + set(INC . ../blenkernel -- cgit v1.2.3