3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-18 02:16:40 +00:00

follow up on #2737

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-11-25 08:35:28 -08:00
parent ba03d99526
commit 17fb07875d
2 changed files with 10 additions and 6 deletions

View file

@ -274,11 +274,11 @@ endif()
################################################################################
# Thread safe or not?
################################################################################
option(SINGLE_THREADED
option(Z3_SINGLE_THREADED
"Non-thread-safe build"
OFF
)
if (SINGLE_THREADED)
if (Z3_SINGLE_THREADED)
list(APPEND Z3_COMPONENT_CXX_DEFINES "-DSINGLE_THREAD")
message(STATUS "Non-thread-safe build")
else()
@ -326,9 +326,9 @@ include(${PROJECT_SOURCE_DIR}/cmake/compiler_warnings.cmake)
################################################################################
# Save Clang optimization records
################################################################################
option(SAVE_CLANG_OPTIMIZATION_RECORDS "Enable saving Clang optimization records." OFF)
option(Z3_SAVE_CLANG_OPTIMIZATION_RECORDS "Enable saving Clang optimization records." OFF)
if (SAVE_CLANG_OPTIMIZATION_RECORDS)
if (Z3_SAVE_CLANG_OPTIMIZATION_RECORDS)
z3_add_cxx_flag("-fsave-optimization-record" REQUIRED)
endif()
@ -614,7 +614,9 @@ install(
################################################################################
# Examples
################################################################################
option(Z3_ENABLE_EXAMPLE_TARGETS "Build Z3 api examples" ON)
cmake_dependent_option(Z3_ENABLE_EXAMPLE_TARGETS
"Build Z3 api examples" ON
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF)
if (Z3_ENABLE_EXAMPLE_TARGETS)
add_subdirectory(examples)
endif()