From 81beb2875270484e6c192529a53c48084f1a4197 Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Wed, 1 Apr 2020 16:15:42 +0200 Subject: FindPython: fix handling when FIND_VIRTUALENV == FIRST Fixes: #20525 --- Modules/FindPython/Support.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake index 67db4d3..50dd7ba 100644 --- a/Modules/FindPython/Support.cmake +++ b/Modules/FindPython/Support.cmake @@ -953,7 +953,7 @@ if ("Interpreter" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS) if (_${_PYTHON_PREFIX}_EXECUTABLE) break() endif() - if (NOT _${_PYTHON_PREFIX}_FIND_VIRTUALENV STREQUAL "ONLY") + if (_${_PYTHON_PREFIX}_FIND_VIRTUALENV STREQUAL "ONLY") break() endif() endif() -- cgit v0.12