aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-19 00:45:23 +0800
committerGitHub <noreply@github.com>2018-12-19 00:45:23 +0800
commite970590675f0d4950e58d93852cd60e4fae98d8c (patch)
tree171bc63a61bc93c9dfb055437e6074e83b7db7f2 /libsolidity
parentd959407f66d91ec5f7b05947193d58ae5b9468a9 (diff)
parent2f698b6efe1b1bb932b238a5dd912b290978ac72 (diff)
downloaddexon-solidity-e970590675f0d4950e58d93852cd60e4fae98d8c.tar.gz
dexon-solidity-e970590675f0d4950e58d93852cd60e4fae98d8c.tar.zst
dexon-solidity-e970590675f0d4950e58d93852cd60e4fae98d8c.zip
Merge pull request #5664 from ethereum/cmakeUpdates
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 389f94bd..8c2ab347 100644
--- a/libsolidity/CMakeLists.txt
+++ b/libsolidity/CMakeLists.txt
@@ -104,7 +104,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 formal/Z3Interface.cpp formal/Z3Interface.h)
@@ -114,7 +113,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 formal/CVC4Interface.cpp formal/CVC4Interface.h)
@@ -131,9 +129,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()