diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-02 13:32:21 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-02 14:42:13 +0300 |
commit | 964b5f02caf8d49f5057be6b874a912652b710c9 (patch) | |
tree | 0afb494296e375d4dda0aa710f86b7ddfb7ab9a5 /source/blender/makesdna/intern/CMakeLists.txt | |
parent | 1abd909a92b696eb556b071671314f35d5d5bde0 (diff) |
DNA: add error for DNA computed struct sizes and member offsets mismatch.
Ref T63164, there was a hidden bug like this on Windows 32 bit.
Diffstat (limited to 'source/blender/makesdna/intern/CMakeLists.txt')
-rw-r--r-- | source/blender/makesdna/intern/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/intern/CMakeLists.txt b/source/blender/makesdna/intern/CMakeLists.txt index 294fb861912..09f95d50f17 100644 --- a/source/blender/makesdna/intern/CMakeLists.txt +++ b/source/blender/makesdna/intern/CMakeLists.txt @@ -63,10 +63,12 @@ add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/dna.c ${CMAKE_CURRENT_BINARY_DIR}/dna_type_offsets.h + ${CMAKE_CURRENT_BINARY_DIR}/dna_verify.c COMMAND "$<TARGET_FILE:makesdna>" ${CMAKE_CURRENT_BINARY_DIR}/dna.c ${CMAKE_CURRENT_BINARY_DIR}/dna_type_offsets.h + ${CMAKE_CURRENT_BINARY_DIR}/dna_verify.c ${CMAKE_SOURCE_DIR}/source/blender/makesdna/ DEPENDS makesdna ) @@ -86,6 +88,7 @@ set(SRC dna_utils.c dna_genfile.c ${CMAKE_CURRENT_BINARY_DIR}/dna.c + ${CMAKE_CURRENT_BINARY_DIR}/dna_verify.c ${SRC_DNA_INC} dna_utils.h @@ -93,6 +96,7 @@ set(SRC set_source_files_properties( ${CMAKE_CURRENT_BINARY_DIR}/dna.c + ${CMAKE_CURRENT_BINARY_DIR}/dna_verify.c ${CMAKE_CURRENT_BINARY_DIR}/dna_type_offsets.h PROPERTIES GENERATED TRUE ) |