summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2020-09-02 11:30:57 -0700
committerGitHub <noreply@github.com>2020-09-02 11:30:57 -0700
commita692d44ed5ba0107113df54d2654417bc9f9c345 (patch)
tree6b26f74a13a9892855f700a1a3cae9b3d6c3b380 /cmake
parent0ee1b1371e7cf50c14883316fdd6374114799a99 (diff)
Use SMT-COMP configuration for competition build (#4995)
This commit changes our `competition` build to include the libraries that we have used for SMT-COMP by default. This makes it easier for users to reproduce our SMT-COMP configuration for performance measurements. We are using GPL libraries for this build type, so the commit adds color to highlight the fact that this build type produces a GPL build.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/ConfigCompetition.cmake10
-rw-r--r--cmake/Helpers.cmake6
2 files changed, 16 insertions, 0 deletions
diff --git a/cmake/ConfigCompetition.cmake b/cmake/ConfigCompetition.cmake
index e18d2b2f1..d7188f60a 100644
--- a/cmake/ConfigCompetition.cmake
+++ b/cmake/ConfigCompetition.cmake
@@ -22,3 +22,13 @@ cvc4_set_option(ENABLE_MUZZLE ON)
# enable_shared=no
cvc4_set_option(ENABLE_SHARED OFF)
cvc4_set_option(ENABLE_UNIT_TESTING OFF)
+
+# By default, we include all dependencies in our competition build that are
+# required to achieve the best performance
+set(ENABLE_GPL ON)
+cvc4_set_option(USE_CADICAL ON)
+cvc4_set_option(USE_CLN ON)
+cvc4_set_option(USE_CRYPTOMINISAT ON)
+cvc4_set_option(USE_EDITLINE OFF)
+cvc4_set_option(USE_GLPK ON)
+cvc4_set_option(USE_SYMFPU ON)
diff --git a/cmake/Helpers.cmake b/cmake/Helpers.cmake
index 692e32900..79c8f7bf2 100644
--- a/cmake/Helpers.cmake
+++ b/cmake/Helpers.cmake
@@ -1,6 +1,12 @@
include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)
+if(NOT WIN32)
+ string(ASCII 27 Esc)
+ set(Yellow "${Esc}[33m")
+ set(ResetColor "${Esc}[m")
+endif()
+
# Add a C flag to the global list of C flags.
macro(add_c_flag flag)
if(CMAKE_C_FLAGS)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback