[all-commits] [llvm/llvm-project] cb3185: [MLIR] [CMake/Python] Fix ignored Python3_EXECUTABLE
John Demme via All-commits
all-commits at lists.llvm.org
Thu Mar 10 07:50:55 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cb318526b0417b1a03255ee79920ad613b0ae691
https://github.com/llvm/llvm-project/commit/cb318526b0417b1a03255ee79920ad613b0ae691
Author: John Demme <john.demme at microsoft.com>
Date: 2022-03-10 (Thu, 10 Mar 2022)
Changed paths:
M mlir/cmake/modules/MLIRDetectPythonEnv.cmake
Log Message:
-----------
[MLIR] [CMake/Python] Fix ignored Python3_EXECUTABLE
On Windows (at least), cmake ignores Python3_EXECUTABLE unless the
'Interpreter' component is being found. If the user is specifying a
different version than the latest installed (say, 3.8 vs 3.9) with the
Python3_EXECUTABLE, cmake was using a combination of the newest version
and the desired version. Mitigated by adding 'Interpreter' in the first
invocation like the second one.
More information about the All-commits
mailing list