summaryrefslogtreecommitdiff
path: root/src/options
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2021-02-09 15:18:14 -0800
committerGitHub <noreply@github.com>2021-02-09 17:18:14 -0600
commit1d140d9fb1b79a1776f359c879667180e094de5a (patch)
treebc7d8509de90dd71fd63c8d0cf58294f0d6b6cce /src/options
parentfb6acf659fbf69327f8044e35e6919c1243bc848 (diff)
cmake: Make Python3 default and improve toml error messages. (#5884)
./configure.sh will now fail if Python3 is not installed on the system. Since Python2 is now deprecated the user has to explicitly enable it via --python2. This commit also removes the --python3 configure flag.
Diffstat (limited to 'src/options')
-rw-r--r--src/options/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/options/CMakeLists.txt b/src/options/CMakeLists.txt
index cd648955e..663b2bf13 100644
--- a/src/options/CMakeLists.txt
+++ b/src/options/CMakeLists.txt
@@ -18,8 +18,12 @@ execute_process(
)
if(RET_TOML)
- message(FATAL_ERROR
- "Could not find Python module toml. Install via `pip install toml'.")
+ message(FATAL_ERROR
+ "Could not find toml for Python "
+ "version ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}. "
+ "Make sure to install toml for this Python version "
+ "via \n`${PYTHON_EXECUTABLE} -m pip install toml'.\nNote: You need to "
+ "have pip installed for this Python version.")
endif()
libcvc4_add_sources(
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback