aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakhropov <akhropov@yandex-team.com>2024-02-03 02:37:46 +0300
committerakhropov <akhropov@yandex-team.com>2024-02-03 02:52:21 +0300
commit4cd7ee165b7f05e7f3988b2828e23ff617aba74e (patch)
treee26448a9813c49eb02e0bfa32a5952e4719e87eb
parent3a63a037474116a5e00ba10383f0f7e26ee11bcd (diff)
downloadydb-4cd7ee165b7f05e7f3988b2828e23ff617aba74e.tar.gz
Fix: add input file as MAIN_DEPENDENCY in Cython call..
-rw-r--r--build/export_generators/hardcoded-cmake/cmake/cython.cmake1
-rw-r--r--cmake/cython.cmake1
2 files changed, 2 insertions, 0 deletions
diff --git a/build/export_generators/hardcoded-cmake/cmake/cython.cmake b/build/export_generators/hardcoded-cmake/cmake/cython.cmake
index d239c2dc58..c14d894169 100644
--- a/build/export_generators/hardcoded-cmake/cmake/cython.cmake
+++ b/build/export_generators/hardcoded-cmake/cmake/cython.cmake
@@ -35,6 +35,7 @@ function(target_cython_sources Tgt Scope)
"-I$<JOIN:$<TARGET_GENEX_EVAL:${Tgt},$<TARGET_PROPERTY:${Tgt},CYTHON_INCLUDE_DIRS>>,$<SEMICOLON>-I>"
COMMAND_EXPAND_LISTS
DEPENDS ${OUTPUT_INCLUDES}
+ MAIN_DEPENDENCY ${Input}
)
target_sources(${Tgt} ${Scope} ${CppCythonOutput})
endforeach()
diff --git a/cmake/cython.cmake b/cmake/cython.cmake
index d239c2dc58..c14d894169 100644
--- a/cmake/cython.cmake
+++ b/cmake/cython.cmake
@@ -35,6 +35,7 @@ function(target_cython_sources Tgt Scope)
"-I$<JOIN:$<TARGET_GENEX_EVAL:${Tgt},$<TARGET_PROPERTY:${Tgt},CYTHON_INCLUDE_DIRS>>,$<SEMICOLON>-I>"
COMMAND_EXPAND_LISTS
DEPENDS ${OUTPUT_INCLUDES}
+ MAIN_DEPENDENCY ${Input}
)
target_sources(${Tgt} ${Scope} ${CppCythonOutput})
endforeach()