mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 09:55:19 +00:00
[CMake] If OpenMP support is not found make sure we set `USE_OPENMP
`
to ``OFF`` to make it clear in ccmake/cmake-gui that the support is disabled. Previously it would be left as ``ON`` even if support wasn't actually enabled.
This commit is contained in:
parent
e12875ddb5
commit
ad4ddff99a
|
@ -239,6 +239,7 @@ if (OPENMP_FOUND)
|
||||||
else()
|
else()
|
||||||
list(APPEND Z3_COMPONENT_CXX_DEFINES "-D_NO_OMP_")
|
list(APPEND Z3_COMPONENT_CXX_DEFINES "-D_NO_OMP_")
|
||||||
message(STATUS "Not using OpenMP")
|
message(STATUS "Not using OpenMP")
|
||||||
|
set(USE_OPENMP OFF CACHE BOOL "Use OpenMP" FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
Loading…
Reference in a new issue