diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-27 10:25:29 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-27 10:25:29 +0400 |
commit | 8f2eec5a15b5f26bfbe73382677add202adc89a9 (patch) | |
tree | d92475fa2cc7dc642c070544922286af6cae8fe3 | |
parent | fbc7ab30ff025ad3db59a73e2901883986e2e81e (diff) |
Build System: icon files now depend on UI_icons.h for CMake
Now changing UI_icons.h causes icons to be re-generated, without this
adding a new icon wouldn't automatically get into the generated PNG.
-rw-r--r-- | build_files/cmake/macros.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index 70ae9abb713..28af1c1486c 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -859,7 +859,13 @@ macro(data_to_c_simple_icons #COMMAND python3 ${CMAKE_SOURCE_DIR}/source/blender/datatoc/datatoc_icon.py ${_path_from_abs} ${_file_from} COMMAND ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/datatoc_icon ${_path_from_abs} ${_file_from} COMMAND ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/datatoc ${_file_from} ${_file_to} - DEPENDS ${_icon_files} datatoc_icon datatoc) + DEPENDS + ${_icon_files} + datatoc_icon + datatoc + # could be an arg but for now we only create icons depending on UI_icons.h + ${CMAKE_SOURCE_DIR}/source/blender/editors/include/UI_icons.h + ) set_source_files_properties(${_file_from} ${_file_to} PROPERTIES GENERATED TRUE) |