Merge branch 'master' into blender2.8
[blender.git] / source / blender / modifiers / CMakeLists.txt
index a70612447d353f3e478cef6a764ab56726bcad70..397a3263e22e3e9e87b4861d5e31dba6eb4371f1 100644 (file)
@@ -113,10 +113,6 @@ set(SRC
        intern/MOD_weightvg_util.h
 )
 
        intern/MOD_weightvg_util.h
 )
 
-if(WITH_LEGACY_DEPSGRAPH)
-       add_definitions(-DWITH_LEGACY_DEPSGRAPH)
-endif()
-
 if(WITH_ALEMBIC)
        add_definitions(-DWITH_ALEMBIC)
        list(APPEND INC
 if(WITH_ALEMBIC)
        add_definitions(-DWITH_ALEMBIC)
        list(APPEND INC
@@ -151,4 +147,7 @@ if(WITH_OPENSUBDIV)
        add_definitions(-DWITH_OPENSUBDIV)
 endif()
 
        add_definitions(-DWITH_OPENSUBDIV)
 endif()
 
+# So we can have special tricks in modifier system.
+add_definitions(${GL_DEFINITIONS})
+
 blender_add_lib(bf_modifiers "${SRC}" "${INC}" "${INC_SYS}")
 blender_add_lib(bf_modifiers "${SRC}" "${INC}" "${INC_SYS}")