2024-06-05 15:53:02 +00:00
|
|
|
From 714f5ebe9ade721abdccf58edfcddba52465cb8d Mon Sep 17 00:00:00 2001
|
2022-08-21 13:32:41 +00:00
|
|
|
From: Jiajie Chen <c@jia.je>
|
2023-07-15 17:15:38 +00:00
|
|
|
Date: Sun, 2 Jul 2023 22:43:27 +0800
|
2022-08-21 13:32:41 +00:00
|
|
|
Subject: [PATCH] Do not download sources in cmake
|
|
|
|
|
|
|
|
---
|
2023-07-15 17:15:38 +00:00
|
|
|
src/solvers/CMakeLists.txt | 11 +----------
|
|
|
|
1 file changed, 1 insertion(+), 10 deletions(-)
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
diff --git a/src/solvers/CMakeLists.txt b/src/solvers/CMakeLists.txt
|
2024-06-05 15:53:02 +00:00
|
|
|
index daa0853a57..4bcbbdaa47 100644
|
2022-08-21 13:32:41 +00:00
|
|
|
--- a/src/solvers/CMakeLists.txt
|
|
|
|
+++ b/src/solvers/CMakeLists.txt
|
2023-07-15 17:15:38 +00:00
|
|
|
@@ -123,16 +123,6 @@ foreach(SOLVER ${sat_impl})
|
|
|
|
elseif("${SOLVER}" STREQUAL "cadical")
|
|
|
|
message(STATUS "Building solvers with cadical")
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
- download_project(PROJ cadical
|
2024-06-05 15:53:02 +00:00
|
|
|
- URL https://github.com/arminbiere/cadical/archive/rel-1.7.2.tar.gz
|
|
|
|
- PATCH_COMMAND patch -p1 -i ${CBMC_SOURCE_DIR}/../scripts/cadical-1.7.2-patch
|
2023-07-15 17:15:38 +00:00
|
|
|
- COMMAND cmake -E copy ${CBMC_SOURCE_DIR}/../scripts/cadical_CMakeLists.txt CMakeLists.txt
|
|
|
|
- COMMAND ./configure
|
2024-06-05 15:53:02 +00:00
|
|
|
- URL_MD5 be646831a017f81b300664e58deba1b5
|
2023-07-15 17:15:38 +00:00
|
|
|
- )
|
2022-08-21 13:32:41 +00:00
|
|
|
-
|
2023-07-15 17:15:38 +00:00
|
|
|
- add_subdirectory(${cadical_SOURCE_DIR} ${cadical_BINARY_DIR})
|
2022-08-21 13:32:41 +00:00
|
|
|
-
|
2023-07-15 17:15:38 +00:00
|
|
|
target_compile_definitions(solvers PUBLIC
|
|
|
|
SATCHECK_CADICAL HAVE_CADICAL
|
|
|
|
)
|
|
|
|
@@ -140,6 +130,7 @@ foreach(SOLVER ${sat_impl})
|
|
|
|
target_include_directories(solvers
|
|
|
|
PUBLIC
|
|
|
|
${cadical_SOURCE_DIR}/src
|
2024-06-05 15:53:02 +00:00
|
|
|
+ ${cadical_INCLUDE_DIR}
|
2023-07-15 17:15:38 +00:00
|
|
|
)
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
target_link_libraries(solvers cadical)
|
2022-08-21 13:32:41 +00:00
|
|
|
--
|
2024-06-05 15:53:02 +00:00
|
|
|
2.42.0
|
2022-08-21 13:32:41 +00:00
|
|
|
|