aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/FindZ3.cmake
diff options
context:
space:
mode:
authorMatías Aereal Aeón <aereal@gmail.com>2018-08-08 22:46:17 +0800
committerMatías Aereal Aeón <aereal@gmail.com>2018-08-08 23:43:57 +0800
commit4b20708c497cfbbb8a489339b91e26f05d0bd7a2 (patch)
tree1dbf784d05992de48d9d094258debc855d267fef /cmake/FindZ3.cmake
parent009a55c82d22f08fd207739d7b8aeff215fb7c03 (diff)
downloaddexon-solidity-4b20708c497cfbbb8a489339b91e26f05d0bd7a2.tar.gz
dexon-solidity-4b20708c497cfbbb8a489339b91e26f05d0bd7a2.tar.zst
dexon-solidity-4b20708c497cfbbb8a489339b91e26f05d0bd7a2.zip
cmake flags to make solvers optional. Implementation of #4651
Diffstat (limited to 'cmake/FindZ3.cmake')
-rw-r--r--cmake/FindZ3.cmake14
1 files changed, 8 insertions, 6 deletions
diff --git a/cmake/FindZ3.cmake b/cmake/FindZ3.cmake
index 971d3b4b..704f367e 100644
--- a/cmake/FindZ3.cmake
+++ b/cmake/FindZ3.cmake
@@ -1,7 +1,9 @@
-find_path(Z3_INCLUDE_DIR z3++.h)
-find_library(Z3_LIBRARY NAMES z3 )
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(Z3 DEFAULT_MSG Z3_LIBRARY Z3_INCLUDE_DIR)
-
+if (USE_Z3)
+ find_path(Z3_INCLUDE_DIR z3++.h)
+ find_library(Z3_LIBRARY NAMES z3 )
+ include(FindPackageHandleStandardArgs)
+ find_package_handle_standard_args(Z3 DEFAULT_MSG Z3_LIBRARY Z3_INCLUDE_DIR)
+else()
+ set(Z3_FOUND FALSE)
+endif()
# TODO: Create IMPORTED library for Z3.
-