File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,15 @@ elseif("${sat_impl}" STREQUAL "cadical")
109
109
)
110
110
111
111
message (STATUS "Building CaDiCaL" )
112
- execute_process (COMMAND make WORKING_DIRECTORY ${cadical_SOURCE_DIR} )
112
+ if ("${CMAKE_BUILD_TYPE} " STREQUAL "Release" )
113
+ execute_process (COMMAND make CXXFLAGS="${CMAKE_CXX_FLAGS_RELEASE} "
114
+ WORKING_DIRECTORY "${cadical_SOURCE_DIR} " )
115
+ elseif ("${CMAKE_BUILD_TYPE} " STREQUAL "RelWithDebInfo" )
116
+ execute_process (COMMAND make CXXFLAGS="${CMAKE_CXX_FLAGS_RELWITHDEBINFO} "
117
+ WORKING_DIRECTORY "${cadical_SOURCE_DIR} " )
118
+ else ()
119
+ execute_process (COMMAND make WORKING_DIRECTORY ${cadical_SOURCE_DIR} )
120
+ endif ()
113
121
114
122
target_compile_definitions (solvers PUBLIC
115
123
SATCHECK_CADICAL HAVE_CADICAL
You can’t perform that action at this time.
0 commit comments