File tree 1 file changed +13
-0
lines changed 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,19 @@ foreach(SOLVER ${sat_impl})
167
167
${cadical_SOURCE_DIR} /src
168
168
)
169
169
target_link_libraries (solvers cadical_ipasir)
170
+ elseif ("${SOLVER} " STREQUAL "system-cadical" )
171
+ include (CheckIncludeFileCXX)
172
+ # if/when we move to CMake 3.12 (or later) we could also check for the
173
+ # library via CMAKE_REQUIRED_LIBRARIES
174
+ find_path (cadical_header_found "cadical.hpp" )
175
+ if (cadical_header_found)
176
+ message (STATUS "Building solvers with cadical (${cadical_header_found} )" )
177
+ target_compile_definitions (solvers PUBLIC SATCHECK_CADICAL HAVE_CADICAL)
178
+ target_include_directories (solvers PRIVATE ${cadical_header_found} )
179
+ target_link_libraries (solvers cadical)
180
+ else ()
181
+ message (FATAL_ERROR "Unable to find header file for preinstalled cadical" )
182
+ endif ()
170
183
elseif ("${SOLVER} " STREQUAL "ipasir-custom" )
171
184
message (STATUS "Building with IPASIR solver linking: custom solver provided" )
172
185
You can’t perform that action at this time.
0 commit comments