Merge branch 'blender2.7'
[blender.git] / intern / openvdb / CMakeLists.txt
index 4b872f25d4507d696ca40238a8dcbf8676bf9fd1..ddec43f30a3a34b62aa8bb146884aa17b5b7c8d8 100644 (file)
 #
 # The Original Code is Copyright (C) 2015, Blender Foundation
 # All rights reserved.
-#
-# The Original Code is: all of this file.
-#
-# Contributor(s): Kevin Dietrich.
-#
 # ***** END GPL LICENSE BLOCK *****
 
 set(INC
@@ -38,9 +33,15 @@ set(SRC
 if(WITH_OPENVDB)
        add_definitions(
                -DWITH_OPENVDB
-               -DOPENVDB_3_ABI_COMPATIBLE
+               ${OPENVDB_DEFINITIONS}
        )
 
+       if(WITH_OPENVDB_3_ABI_COMPATIBLE)
+               add_definitions(
+                       -DOPENVDB_3_ABI_COMPATIBLE
+               )
+       endif()
+
        list(APPEND INC_SYS
                ${BOOST_INCLUDE_DIR}
                ${TBB_INCLUDE_DIRS}