From 8f2eec5a15b5f26bfbe73382677add202adc89a9 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 27 Jan 2014 17:25:29 +1100 Subject: 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. --- build_files/cmake/macros.cmake | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'build_files') 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) -- cgit v1.2.3