From 7d7090710c717e524d096d31608dfecac93e1009 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 16 Jun 2020 12:20:20 +0200 Subject: CMake: Fix compilation errors related on missing dna_type_offsets.h Some of the files were (indirectly) using dna_type_offsets.h without adding dependency from bf_dna (which is needed to ensure the file is generated prior to library compilation). --- source/blender/modifiers/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/modifiers') diff --git a/source/blender/modifiers/CMakeLists.txt b/source/blender/modifiers/CMakeLists.txt index 460f697a0a9..80a1ebab64e 100644 --- a/source/blender/modifiers/CMakeLists.txt +++ b/source/blender/modifiers/CMakeLists.txt @@ -175,3 +175,7 @@ endif() add_definitions(${GL_DEFINITIONS}) blender_add_lib(bf_modifiers "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") + +# Some modifiers include BLO_read_write.h, which includes dna_type_offsets.h +# which is generated by bf_dna. Need to ensure compilaiton order here. +add_dependencies(bf_modifiers bf_dna) -- cgit v1.2.3