aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-12-17 20:42:48 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-12-17 22:15:11 +0800
commit2f698b6efe1b1bb932b238a5dd912b290978ac72 (patch)
treee5c669583348c70c91eceb4655701e3cf9809ef5 /libsolidity
parent8d3617b7c522d74bcc36a1fbc1eb7c16bf96ad4d (diff)
downloaddexon-solidity-2f698b6efe1b1bb932b238a5dd912b290978ac72.tar.gz
dexon-solidity-2f698b6efe1b1bb932b238a5dd912b290978ac72.tar.zst
dexon-solidity-2f698b6efe1b1bb932b238a5dd912b290978ac72.zip
Use imported CMake targets.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/libsolidity/CMakeLists.txt b/libsolidity/CMakeLists.txt
index 43d61c86..e67facb3 100644
--- a/libsolidity/CMakeLists.txt
+++ b/libsolidity/CMakeLists.txt
@@ -50,7 +50,6 @@ set(sources
find_package(Z3 QUIET)
if (${Z3_FOUND})
- include_directories(${Z3_INCLUDE_DIR})
add_definitions(-DHAVE_Z3)
message("Z3 SMT solver found. This enables optional SMT checking with Z3.")
set(z3_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/formal/Z3Interface.cpp")
@@ -60,7 +59,6 @@ endif()
find_package(CVC4 QUIET)
if (${CVC4_FOUND})
- include_directories(${CVC4_INCLUDE_DIR})
add_definitions(-DHAVE_CVC4)
message("CVC4 SMT solver found. This enables optional SMT checking with CVC4.")
set(cvc4_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/formal/CVC4Interface.cpp")
@@ -77,9 +75,9 @@ add_library(solidity ${sources} ${z3_SRCS} ${cvc4_SRCS})
target_link_libraries(solidity PUBLIC yul evmasm langutil devcore ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY})
if (${Z3_FOUND})
- target_link_libraries(solidity PUBLIC ${Z3_LIBRARY})
+ target_link_libraries(solidity PUBLIC Z3::Z3)
endif()
if (${CVC4_FOUND})
- target_link_libraries(solidity PUBLIC ${CVC4_LIBRARIES})
+ target_link_libraries(solidity PUBLIC CVC4::CVC4)
endif()