File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
1
file(GLOB sources "src/*.cpp" "src/*.hpp" "src/*.h")
2
2
# Remove "app" sources from list
3
- list(REMOVE_ITEM sources "src/cadical.cpp" "src/mobical.cpp")
3
+ list(REMOVE_ITEM sources
4
+ "${CMAKE_CURRENT_SOURCE_DIR}/src/cadical.cpp"
5
+ "${CMAKE_CURRENT_SOURCE_DIR}/src/mobical.cpp"
6
+ )
7
+
4
8
add_library(cadical ${sources})
5
9
10
+ # Pass -DNBUILD to disable including the version information, which is not
11
+ # needed since cbmc doesn't run the cadical binary
12
+ target_compile_options(cadical PUBLIC -DNBUILD)
13
+
6
14
set_target_properties(
7
15
cadical
8
16
PROPERTIES
Original file line number Diff line number Diff line change @@ -117,17 +117,12 @@ foreach(SOLVER ${sat_impl})
117
117
URL_MD5 b44874501a175106424f4bd5de29aa59
118
118
)
119
119
120
+ add_subdirectory (${cadical_SOURCE_DIR} ${cadical_BINARY_DIR} )
121
+
120
122
target_compile_definitions (solvers PUBLIC
121
123
SATCHECK_CADICAL HAVE_CADICAL
122
124
)
123
125
124
- add_library (cadical STATIC IMPORTED )
125
-
126
- set_target_properties (
127
- cadical
128
- PROPERTIES IMPORTED_LOCATION ${cadical_SOURCE_DIR} /build/libcadical.a
129
- )
130
-
131
126
target_include_directories (solvers
132
127
PUBLIC
133
128
${cadical_SOURCE_DIR} /src
You can’t perform that action at this time.
0 commit comments