diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2018-09-25 09:31:40 -0700 |
---|---|---|
committer | Aina Niemetz <aina.niemetz@gmail.com> | 2018-09-25 09:31:40 -0700 |
commit | f4ce78488ae41b4effc140edfc35cbba79d2dcd4 (patch) | |
tree | 3a700c3952cec3c4c4b24884bf5303e251d17403 | |
parent | a86035ec401f815b252312fa2ef54e4a588c4f7c (diff) |
cmake: Fix tag code generation dependencies. (#2529)
-rw-r--r-- | src/base/CMakeLists.txt | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/base/CMakeLists.txt b/src/base/CMakeLists.txt index 94ef98126..532ed475d 100644 --- a/src/base/CMakeLists.txt +++ b/src/base/CMakeLists.txt @@ -73,17 +73,18 @@ file(GLOB_RECURSE source_files ${PROJECT_SOURCE_DIR}/src/*.g) string(REPLACE ";" " " source_files_list "${source_files}") -# Note: {Debug,Trace}_tags.tmp are targets since we always want to generate -# the temporary tag files in order to check if anything changed. +# Note: gen-tags-{debug,trace} are targets since we always want to generate +# the temporary tag files {Debug,Trace}_tags.tmp in order to check if tags +# were added/modified/deleted. add_custom_target( - Debug_tags.tmp + gen-tags-debug COMMAND ${gentmptags_script} ${CMAKE_CURRENT_LIST_DIR} Debug ${source_files_list} DEPENDS mktags ) add_custom_target( - Trace_tags.tmp + gen-tags-trace COMMAND ${gentmptags_script} ${CMAKE_CURRENT_LIST_DIR} Trace ${source_files_list} DEPENDS mktags @@ -92,13 +93,13 @@ add_custom_target( add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Debug_tags COMMAND ${gentags_script} Debug - DEPENDS Debug_tags.tmp + DEPENDS gen-tags-debug ${CMAKE_CURRENT_BINARY_DIR}/Debug_tags.tmp ) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Trace_tags COMMAND ${gentags_script} Trace - DEPENDS Trace_tags.tmp + DEPENDS gen-tags-trace ${CMAKE_CURRENT_BINARY_DIR}/Trace_tags.tmp ) add_custom_command( |