Skip to content

Commit 14a5a0c

Browse files
committed
build: Do not copy conf generator files to build directory
These files are copied to the build directory but then never used during the build, instead the command to generate lv_conf.h below uses the original source files. Skip this unneeded copy. Instead add these files to CMake's CONFIGURE_DEPENDS so that CMake will still reconfigure if these source files change. Signed-off-by: Andrew Davis <afd@ti.com>
1 parent 0fb82fe commit 14a5a0c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

CMakeLists.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,9 @@ set(LV_BUILD_CONF_PATH
6565
set(LVGL_TEMPLATE_PATH "${CMAKE_SOURCE_DIR}/lvgl/lv_conf_template.h")
6666
set(GENERATE_SCRIPT_PATH "${CMAKE_SOURCE_DIR}/lvgl/scripts/generate_lv_conf.py")
6767

68-
configure_file(${LVGL_TEMPLATE_PATH} ${CMAKE_BINARY_DIR}/lv_conf_template.h
69-
COPYONLY)
70-
configure_file(${LV_CONF_DEFAULTS_PATH} ${CMAKE_BINARY_DIR}/lv_conf.defaults
71-
COPYONLY)
72-
configure_file(${GENERATE_SCRIPT_PATH} ${CMAKE_BINARY_DIR}/generate_lv_conf.py
73-
COPYONLY)
68+
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${LVGL_TEMPLATE_PATH})
69+
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${LV_CONF_DEFAULTS_PATH})
70+
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${GENERATE_SCRIPT_PATH})
7471

7572
execute_process(
7673
COMMAND

0 commit comments

Comments
 (0)