Skip to content

Commit

Permalink
link cadical and cadiback libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
arijitsh committed Jan 23, 2025
1 parent cf5ad33 commit 7bd0f0f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 20 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,24 @@ endif()
option(NOCRYPTOMINISAT "Don't try to use cryptominisat" OFF)

if (NOT NOCRYPTOMINISAT)
find_library(cadiback
PATHS ${CMAKE_CURRENT_SOURCE_DIR}/../deps/cadiback/
NAMES cadiback
REQUIRED)
find_library(cadical
PATHS ${CMAKE_CURRENT_SOURCE_DIR}/../deps/cadical/build/
NAMES cadical
REQUIRED)
if (cadical)
message(STATUS "Found CaDiCaL library at ${cadical}")
else()
message(FATAL_ERROR "CaDiCaL library not found")
endif()
if (cadiback)
message(STATUS "Found CaDiBack library at ${cadiback}")
else()
message(FATAL_ERROR "CaDiBack library not found")
endif()
set(cryptominisat5_DIR "" CACHE PATH "Path to directory containing cryptominisat5Config.cmake")
find_package(cryptominisat5 CONFIG)
if (cryptominisat5_FOUND AND HAVE_FLAG_STD_CPP11 AND (NOT NOCRYPTOMINISAT))
Expand Down Expand Up @@ -651,9 +669,9 @@ if (CMAKE_HOST_SYSTEM_NAME MATCHES "Darwin")
message(STATUS "Found Bison keg installed by Homebrew at ${BREW_BISON_PREFIX}")
set(BISON_EXECUTABLE "${BREW_BISON_PREFIX}/bin/bison")
endif()

execute_process(
COMMAND brew --prefix flex
COMMAND brew --prefix flex
RESULT_VARIABLE BREW_FLEX
OUTPUT_VARIABLE BREW_FLEX_PREFIX
OUTPUT_STRIP_TRAILING_WHITESPACE
Expand Down
2 changes: 2 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ if (USE_CRYPTOMINISAT)
else()
set(stp_link_libs
${stp_link_libs}
${cadiback}
${cadical}
${CRYPTOMINISAT5_LIBRARIES})
endif()
endif()
Expand Down

0 comments on commit 7bd0f0f

Please sign in to comment.