aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/FindCVC4.cmake
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-08-08 22:31:17 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-08-09 01:02:59 +0800
commit9b4546c487bc59e790716a11531e660110ca81e9 (patch)
treee3e4cefaac9e53dd494f021eaaab5e15e6b87941 /cmake/FindCVC4.cmake
parent551343ae3eb1b3f1575d91a4f7021c0f9529d5bd (diff)
downloaddexon-solidity-9b4546c487bc59e790716a11531e660110ca81e9.tar.gz
dexon-solidity-9b4546c487bc59e790716a11531e660110ca81e9.tar.zst
dexon-solidity-9b4546c487bc59e790716a11531e660110ca81e9.zip
Add workarounds for building against CVC4 on ArchLinux.
Diffstat (limited to 'cmake/FindCVC4.cmake')
-rw-r--r--cmake/FindCVC4.cmake10
1 files changed, 9 insertions, 1 deletions
diff --git a/cmake/FindCVC4.cmake b/cmake/FindCVC4.cmake
index 90b7ebd5..900a123e 100644
--- a/cmake/FindCVC4.cmake
+++ b/cmake/FindCVC4.cmake
@@ -1,8 +1,16 @@
if (USE_CVC4)
find_path(CVC4_INCLUDE_DIR cvc4/cvc4.h)
- find_library(CVC4_LIBRARY NAMES cvc4 )
+ find_library(CVC4_LIBRARY NAMES cvc4)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(CVC4 DEFAULT_MSG CVC4_LIBRARY CVC4_INCLUDE_DIR)
+ if(CVC4_FOUND)
+ find_library(CLN_LIBRARY NAMES cln)
+ if(CLN_LIBRARY)
+ set(CVC4_LIBRARIES ${CVC4_LIBRARY} ${CLN_LIBRARY})
+ else()
+ set(CVC4_LIBRARIES ${CVC4_LIBRARY})
+ endif()
+ endif()
else()
set(CVC4_FOUND FALSE)
endif()