mirror of
https://github.com/Z3Prover/z3
synced 2025-08-08 20:21:23 +00:00
[CMake] Refactor the dependency on `scripts/mk_util.py
` into
a list ``Z3_GENERATED_FILE_EXTRA_DEPENDENCIES`` that is used by the ``add_custom_command()`` declarations. This will let us easily change the common dependencies for generating build files in the future.
This commit is contained in:
parent
9743c188da
commit
a2e3788a20
6 changed files with 22 additions and 9 deletions
|
@ -333,6 +333,18 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
|
|||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
|
||||
|
||||
################################################################################
|
||||
# Extra dependencies for build rules that use the Python infrastructure to
|
||||
# generate files used for Z3's build. Changes to these files will trigger
|
||||
# a rebuild of all the generated files.
|
||||
################################################################################
|
||||
# Note: ``update_api.py`` is deliberately not here because it not used
|
||||
# to generate every generated file. The targets that need it list it explicitly.
|
||||
# FIXME: We should drop the dependency on ``mk_util.py``
|
||||
set(Z3_GENERATED_FILE_EXTRA_DEPENDENCIES
|
||||
"${CMAKE_SOURCE_DIR}/scripts/mk_util.py"
|
||||
)
|
||||
|
||||
################################################################################
|
||||
# Z3 components, library and executables
|
||||
################################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue