Fix Cycles issue moving versioning to blenloader
authorCampbell Barton <ideasman42@gmail.com>
Wed, 12 Sep 2018 09:32:54 +0000 (19:32 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 12 Sep 2018 09:32:54 +0000 (19:32 +1000)
source/blender/blenloader/CMakeLists.txt

index e0453e71a0582e5a6722cad68c8c860dd2854290..cf8685ef82472de5ebba6df686f721b8b61b44fe 100644 (file)
@@ -94,6 +94,11 @@ if(WITH_ALEMBIC)
        add_definitions(-DWITH_ALEMBIC)
 endif()
 
+# Needed for versioning userdef.
+if(WITH_CYCLES)
+       add_definitions(-DWITH_CYCLES)
+endif()
+
 blender_add_lib(bf_blenloader "${SRC}" "${INC}" "${INC_SYS}")
 
 # needed so writefile.c can use dna_type_offsets.h