aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakhropov <akhropov@yandex-team.com>2024-02-03 02:37:46 +0300
committerAlexander Smirnov <alex@ydb.tech>2024-02-09 19:17:25 +0300
commit4e6031f845d76fbb105bbee3f2a36b796b040c4d (patch)
treeb8b8644e22641e2585cc6147c2f0c757ff951f26
parent9b68e5db0394ee81fec88f1684ee44140c7a8804 (diff)
downloadydb-4e6031f845d76fbb105bbee3f2a36b796b040c4d.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()