[Bf-blender-cvs] [348631cffea] master: Fix: Compilation error caused by missing target relation

Ray Molenkamp noreply at git.blender.org
Fri Jan 14 15:46:06 CET 2022


Commit: 348631cffeada63c175ed7d44dec15302fbf2c7f
Author: Ray Molenkamp
Date:   Fri Jan 14 07:46:00 2022 -0700
Branches: master
https://developer.blender.org/rB348631cffeada63c175ed7d44dec15302fbf2c7f

Fix: Compilation error caused by missing target relation

bf_nodes/bf_nodes_composite depend on DNA headers

===================================================================

M	source/blender/nodes/CMakeLists.txt
M	source/blender/nodes/composite/CMakeLists.txt

===================================================================

diff --git a/source/blender/nodes/CMakeLists.txt b/source/blender/nodes/CMakeLists.txt
index 957c5b78342..402a71af27f 100644
--- a/source/blender/nodes/CMakeLists.txt
+++ b/source/blender/nodes/CMakeLists.txt
@@ -181,3 +181,6 @@ if(WITH_OPENVDB)
 endif()
 
 blender_add_lib(bf_nodes "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
+
+# Needed so we can use dna_type_offsets.h for defaults initialization.
+add_dependencies(bf_nodes bf_dna)
diff --git a/source/blender/nodes/composite/CMakeLists.txt b/source/blender/nodes/composite/CMakeLists.txt
index 0374f913d4b..aceca617fb4 100644
--- a/source/blender/nodes/composite/CMakeLists.txt
+++ b/source/blender/nodes/composite/CMakeLists.txt
@@ -158,3 +158,6 @@ if(WITH_UNITY_BUILD)
   set_target_properties(bf_nodes_composite PROPERTIES UNITY_BUILD ON)
   set_target_properties(bf_nodes_composite PROPERTIES UNITY_BUILD_BATCH_SIZE 10)
 endif()
+
+# Needed so we can use dna_type_offsets.h for defaults initialization.
+add_dependencies(bf_nodes_composite bf_dna)



More information about the Bf-blender-cvs mailing list