option(USE_LFSC "Use LFSC proof checker")
option(USE_SYMFPU "Use SymFPU for floating point support")
option(USE_PYTHON2 "Prefer using Python 2 (for Python bindings)")
+option(USE_PYTHON3 "Prefer using Python 3 (for Python bindings)")
# Custom install directories for dependencies
# If no directory is provided by the user, we first check if the dependency was
if(USE_PYTHON2)
find_package(PythonInterp 2.7 REQUIRED)
+elseif(USE_PYTHON3)
+ find_package(PythonInterp 3 REQUIRED)
else()
- find_package(PythonInterp 3)
find_package(PythonInterp REQUIRED)
endif()
print_config("Java bindings :" BUILD_BINDINGS_JAVA)
print_config("Python bindings :" BUILD_BINDINGS_PYTHON)
print_config("Python2 :" USE_PYTHON2)
+print_config("Python3 :" USE_PYTHON3)
message("")
print_config("Portfolio :" ENABLE_PORTFOLIO)
message("")
--coverage support for gcov coverage testing
--profiling support for gprof profiling
--unit-testing support for unit testing
- --python2 prefer using Python 2 (for Python bindings)
+ --python2 prefer using Python 2 (also for Python bindings)
+ --python3 prefer using Python 3 (also for Python bindings)
The following options configure parameterized features.
tracing=default
unit_testing=default
python2=default
+python3=default
valgrind=default
profiling=default
readline=default
--python2) python2=ON;;
--no-python2) python2=OFF;;
+ --python3) python3=ON;;
+ --no-python3) python3=OFF;;
+
--valgrind) valgrind=ON;;
--no-valgrind) valgrind=OFF;;
&& cmake_opts="$cmake_opts -DENABLE_UNIT_TESTING=$unit_testing"
[ $python2 != default ] \
&& cmake_opts="$cmake_opts -DUSE_PYTHON2=$python2"
+[ $python3 != default ] \
+ && cmake_opts="$cmake_opts -DUSE_PYTHON3=$python3"
[ $valgrind != default ] \
&& cmake_opts="$cmake_opts -DENABLE_VALGRIND=$valgrind"
[ $profiling != default ] \
# Make sure that interpreter and libraries have a compatible version.
# Note: We use the Python interpreter to determine the install path for Python
-# modules. If the interpreter and library have different version, the module
+# modules. If the interpreter and library have different versions, the module
# will be installed for the wrong Python version. Hence, we require the library
# version to match the Python interpreter's version.
find_package(PythonLibs