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).
This commit is contained in:
Sergey Sharybin 2020-06-16 12:20:20 +02:00
parent 38c9573b23
commit 7d7090710c
3 changed files with 8 additions and 0 deletions

View File

@ -96,6 +96,7 @@ set(SRC
${CMAKE_CURRENT_BINARY_DIR}/dna_verify.c
${SRC_DNA_INC}
${CMAKE_CURRENT_BINARY_DIR}/dna_type_offsets.h
dna_rename_defs.h
dna_utils.h
)

View File

@ -443,3 +443,6 @@ set(LIB
add_definitions(${GL_DEFINITIONS})
blender_add_lib(bf_rna "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
# Needed so we can use dna_type_offsets.h for defaults initialization.
add_dependencies(bf_blenkernel bf_dna)

View File

@ -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)