2022-02-23 05:46:54 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-04-20 00:38:20 +08:00
|
|
|
index c8da1610..106fdb8b 100644
|
2022-02-23 05:46:54 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-04-20 00:38:20 +08:00
|
|
|
@@ -103,9 +103,9 @@ list(APPEND CMAKE_MODULE_PATH "${TRITON_ROOT}/CMakeModules/")
|
2022-02-23 05:46:54 +08:00
|
|
|
# Find Z3
|
|
|
|
if(Z3_INTERFACE)
|
|
|
|
message(STATUS "Compiling with Z3 SMT solver")
|
|
|
|
- find_package(Z3 REQUIRED)
|
|
|
|
- include_directories(${Z3_INCLUDE_DIRS})
|
|
|
|
+ find_package(Z3 CONFIG REQUIRED)
|
|
|
|
set(TRITON_Z3_INTERFACE ON)
|
|
|
|
+ set(Z3_LIBRARIES z3::libz3)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Find bitwuzla
|
2022-03-03 05:50:03 +08:00
|
|
|
diff --git a/src/libtriton/Config.cmake.in b/src/libtriton/Config.cmake.in
|
2022-04-20 00:38:20 +08:00
|
|
|
index 90cf6bfe..33f27d23 100644
|
2022-03-03 05:50:03 +08:00
|
|
|
--- a/src/libtriton/Config.cmake.in
|
|
|
|
+++ b/src/libtriton/Config.cmake.in
|
2022-04-20 00:38:20 +08:00
|
|
|
@@ -47,8 +47,7 @@ endif()
|
2022-04-09 06:32:16 +08:00
|
|
|
|
2022-04-20 00:38:20 +08:00
|
|
|
# Z3 include directories
|
|
|
|
if (TRITON_Z3_INTERFACE)
|
|
|
|
- include_directories("@Z3_INCLUDE_DIRS@")
|
|
|
|
- link_directories(BEFORE "@Z3_LIB_DIR@")
|
2022-04-09 06:32:16 +08:00
|
|
|
+ find_dependency(Z3 CONFIG)
|
2022-03-03 05:50:03 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
# Bitwuzla include directories
|