File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,38 @@ elseif("${sat_impl}" STREQUAL "ipasir-cadical")
160
160
${cadical_SOURCE_DIR} /src
161
161
)
162
162
target_link_libraries (solvers cadical_ipasir)
163
+ elseif ("${sat_impl} " STREQUAL "ipasir-custom" )
164
+ message (STATUS "Building with IPASIR solver linking: custom solver provided" )
165
+
166
+ if (NOT DEFINED IPASIR)
167
+ message (FATAL_ERROR
168
+ "IPASIR solver source code not provided. Please use -DIPASIR=<location> "
169
+ "with <location> being the path to the IPASIR solver source code."
170
+ )
171
+ endif ()
172
+
173
+ if (NOT DEFINED IPASIR_LIB)
174
+ message (FATAL_ERROR
175
+ "IPASIR solver library not provided. Please use -DIPASIR_LIB=<location> "
176
+ "with <location> being the path to the IPASIR solver precompiled static "
177
+ "library."
178
+ )
179
+ endif ()
180
+
181
+ target_compile_definitions (solvers PUBLIC
182
+ SATCHECK_IPASIR HAVE_IPASIR IPASIR=${IPASIR}
183
+ )
184
+
185
+ add_library (ipasir_custom STATIC IMPORTED )
186
+ set_property (TARGET ipasir_custom
187
+ PROPERTY IMPORTED_LOCATION ${IPASIR_LIB}
188
+ )
189
+
190
+ target_include_directories (solvers
191
+ PUBLIC
192
+ ${IPASIR}
193
+ )
194
+ target_link_libraries (solvers ipasir_custom pthread)
163
195
endif ()
164
196
165
197
if (CMAKE_USE_CUDD)
You can’t perform that action at this time.
0 commit comments