[evolution-mapi] Make glib_mkenums() files depend on the source enum file
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Make glib_mkenums() files depend on the source enum file
- Date: Fri, 9 Dec 2016 15:03:26 +0000 (UTC)
commit 22aa478807ba9ff5a810b2198052e72e46ba4305
Author: Milan Crha <mcrha redhat com>
Date: Fri Dec 9 16:03:14 2016 +0100
Make glib_mkenums() files depend on the source enum file
Then the changes in the source enum file will also regenerate
the enum type files.
cmake/modules/GLibTools.cmake | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/cmake/modules/GLibTools.cmake b/cmake/modules/GLibTools.cmake
index d6728be..fc8eb82 100644
--- a/cmake/modules/GLibTools.cmake
+++ b/cmake/modules/GLibTools.cmake
@@ -86,6 +86,7 @@ G_END_DECLS
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.h
COMMAND ${GLIB_MKENUMS} --template
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/enumtypes-${_output_filename_noext}.h.tmpl"
"${CMAKE_CURRENT_SOURCE_DIR}/${_enums_header}" >${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.h
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_enums_header}
)
set(SOURCE_TMPL "
@@ -133,6 +134,7 @@ GType
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.c
COMMAND ${GLIB_MKENUMS} --template
"${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/enumtypes-${_output_filename_noext}.c.tmpl"
"${CMAKE_CURRENT_SOURCE_DIR}/${_enums_header}" >${CMAKE_CURRENT_BINARY_DIR}/${_output_filename_noext}.c
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_enums_header}
)
endfunction(glib_mkenums)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]