Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The usual behaviour of CMake find_xxx is to cache when the xxx is found but to retry if on rerunning CMake if the xxx wasn't found previously.
The check_python_module() macro didn't do this.
Additionally it only checked that PYTHON_EXECUTABLE was defined and not that it has a useful value too. So it would have attempted to use python even if we'd looked for it and had not found it.