mirror of
https://github.com/Z3Prover/z3
synced 2025-11-03 13:07:53 +00:00
rename additional build options #2709
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3ab9a1c88c
commit
e9d9792524
3 changed files with 23 additions and 23 deletions
|
|
@ -57,16 +57,16 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules")
|
|||
################################################################################
|
||||
include(${PROJECT_SOURCE_DIR}/cmake/git_utils.cmake)
|
||||
macro(disable_git_describe)
|
||||
message(WARNING "Disabling INCLUDE_GIT_DESCRIBE")
|
||||
set(INCLUDE_GIT_DESCRIBE OFF CACHE BOOL "Include git describe output in version output" FORCE)
|
||||
message(WARNING "Disabling Z3_INCLUDE_GIT_DESCRIBE")
|
||||
set(Z3_INCLUDE_GIT_DESCRIBE OFF CACHE BOOL "Include git describe output in version output" FORCE)
|
||||
endmacro()
|
||||
macro(disable_git_hash)
|
||||
message(WARNING "Disabling INCLUDE_GIT_HASH")
|
||||
set(INCLUDE_GIT_HASH OFF CACHE BOOL "Include git hash in version output" FORCE)
|
||||
message(WARNING "Disabling Z3_INCLUDE_GIT_HASH")
|
||||
set(Z3_INCLUDE_GIT_HASH OFF CACHE BOOL "Include git hash in version output" FORCE)
|
||||
unset(Z3GITHASH) # Used in configure_file()
|
||||
endmacro()
|
||||
option(INCLUDE_GIT_HASH "Include git hash in version output" ON)
|
||||
option(INCLUDE_GIT_DESCRIBE "Include git describe output in version output" ON)
|
||||
option(Z3_INCLUDE_GIT_HASH "Include git hash in version output" ON)
|
||||
option(Z3_INCLUDE_GIT_DESCRIBE "Include git describe output in version output" ON)
|
||||
|
||||
set(GIT_DIR "${PROJECT_SOURCE_DIR}/.git")
|
||||
if (EXISTS "${GIT_DIR}")
|
||||
|
|
@ -74,7 +74,7 @@ if (EXISTS "${GIT_DIR}")
|
|||
# a re-configure is triggered when the HEAD changes.
|
||||
add_git_dir_dependency("${PROJECT_SOURCE_DIR}" ADD_GIT_DEP_SUCCESS)
|
||||
if (ADD_GIT_DEP_SUCCESS)
|
||||
if (INCLUDE_GIT_HASH)
|
||||
if (Z3_INCLUDE_GIT_HASH)
|
||||
get_git_head_hash("${GIT_DIR}" Z3GITHASH)
|
||||
if (NOT Z3GITHASH)
|
||||
message(WARNING "Failed to get Git hash")
|
||||
|
|
@ -87,7 +87,7 @@ if (EXISTS "${GIT_DIR}")
|
|||
message(STATUS "Not using Git hash in version output")
|
||||
unset(Z3GITHASH) # Used in configure_file()
|
||||
endif()
|
||||
if (INCLUDE_GIT_DESCRIBE)
|
||||
if (Z3_INCLUDE_GIT_DESCRIBE)
|
||||
get_git_head_describe("${GIT_DIR}" Z3_GIT_DESCRIPTION)
|
||||
if (NOT Z3_GIT_DESCRIPTION)
|
||||
message(WARNING "Failed to get Git description")
|
||||
|
|
@ -267,7 +267,7 @@ if (Z3_API_LOG_SYNC)
|
|||
list(APPEND Z3_COMPONENT_CXX_DEFINES "-DZ3_LOG_SYNC")
|
||||
message(STATUS "Using Z3_API_LOG_SYNC")
|
||||
else()
|
||||
message(STATUS "Not using API_LOG_SYNC")
|
||||
message(STATUS "Not using Z3_API_LOG_SYNC")
|
||||
endif()
|
||||
|
||||
################################################################################
|
||||
|
|
@ -361,8 +361,8 @@ endif()
|
|||
################################################################################
|
||||
# Tracing
|
||||
################################################################################
|
||||
option(ENABLE_TRACING_FOR_NON_DEBUG "Enable tracing in non-debug builds." OFF)
|
||||
if (ENABLE_TRACING_FOR_NON_DEBUG)
|
||||
option(Z3_ENABLE_TRACING_FOR_NON_DEBUG "Enable tracing in non-debug builds." OFF)
|
||||
if (Z3_ENABLE_TRACING_FOR_NON_DEBUG)
|
||||
list(APPEND Z3_COMPONENT_CXX_DEFINES "-D_TRACE")
|
||||
else()
|
||||
# Tracing is always enabled in debug builds
|
||||
|
|
@ -613,16 +613,16 @@ install(
|
|||
################################################################################
|
||||
# Examples
|
||||
################################################################################
|
||||
option(ENABLE_EXAMPLE_TARGETS "Build Z3 api examples" ON)
|
||||
if (ENABLE_EXAMPLE_TARGETS)
|
||||
option(Z3_ENABLE_EXAMPLE_TARGETS "Build Z3 api examples" ON)
|
||||
if (Z3_ENABLE_EXAMPLE_TARGETS)
|
||||
add_subdirectory(examples)
|
||||
endif()
|
||||
|
||||
################################################################################
|
||||
# Documentation
|
||||
################################################################################
|
||||
option(BUILD_DOCUMENTATION "Build API documentation" OFF)
|
||||
if (BUILD_DOCUMENTATION)
|
||||
option(Z3_BUILD_DOCUMENTATION "Build API documentation" OFF)
|
||||
if (Z3_BUILD_DOCUMENTATION)
|
||||
message(STATUS "Building documentation enabled")
|
||||
add_subdirectory(doc)
|
||||
else()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue