Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2018-12-06 00:04:10 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2018-12-06 00:04:10 +0300
commit3552731551ef1845b493ffebf78be5a42527e9f2 (patch)
tree6f76b7ec248577243a9c12a00a859e9d53494b51 /source/blender/collada/CMakeLists.txt
parentda4991fcaebc12b2b5b61eaa15189617eeb792fd (diff)
Fix (devtalk 4053): Collada build with older cmake versions broken
Diffstat (limited to 'source/blender/collada/CMakeLists.txt')
-rw-r--r--source/blender/collada/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/collada/CMakeLists.txt b/source/blender/collada/CMakeLists.txt
index c250384b989..fd38998c98c 100644
--- a/source/blender/collada/CMakeLists.txt
+++ b/source/blender/collada/CMakeLists.txt
@@ -24,8 +24,7 @@
# ***** END GPL LICENSE BLOCK *****
remove_strict_flags()
-
-FIND_FILE(_opencollada_with_animation_clip
+FIND_FILE(OPENCOLLADA_ANIMATION_CLIP
NAMES
COLLADAFWAnimationClip.h
PATHS
@@ -33,8 +32,11 @@ FIND_FILE(_opencollada_with_animation_clip
NO_DEFAULT_PATH
)
-IF(_opencollada_with_animation_clip)
- add_compile_definitions(OPENCOLLADA_WITH_ANIMATION_CLIP)
+IF(OPENCOLLADA_ANIMATION_CLIP)
+ message(STATUS "Found opencollada: ${OPENCOLLADA_ANIMATION_CLIP} ")
+ add_definitions(-DWITH_OPENCOLLADA_ANIMATION_CLIP)
+ELSE()
+ message(STATUS "opencollada: Build without animation clip support")
ENDIF()
set(INC