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 @@ -112,7 +112,15 @@ elseif("${sat_impl}" STREQUAL "cadical")
112
112
)
113
113
114
114
message (STATUS "Building CaDiCaL" )
115
- execute_process (COMMAND make WORKING_DIRECTORY ${cadical_SOURCE_DIR} )
115
+ if ("${CMAKE_BUILD_TYPE} " STREQUAL "Release" )
116
+ execute_process (COMMAND make CXXFLAGS= "${CMAKE_CXX_FLAGS_RELEASE} "
117
+ WORKING_DIRECTORY "${cadical_SOURCE_DIR} " )
118
+ elseif ("${CMAKE_BUILD_TYPE} " STREQUAL "RelWithDebInfo" )
119
+ execute_process (COMMAND make CXXFLAGS= "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} "
120
+ WORKING_DIRECTORY "${cadical_SOURCE_DIR} " )
121
+ else ()
122
+ execute_process (COMMAND make WORKING_DIRECTORY ${cadical_SOURCE_DIR} )
123
+ endif ()
116
124
117
125
target_compile_definitions (solvers PUBLIC
118
126
SATCHECK_CADICAL HAVE_CADICAL
You can’t perform that action at this time.
0 commit comments