summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-04-01 14:15:42 (GMT)
committerBrad King <brad.king@kitware.com>2020-04-01 14:36:46 (GMT)
commit81beb2875270484e6c192529a53c48084f1a4197 (patch)
treec1b571be1ddf32346c64a9e6f57a8038c4261bee
parentb7d8c91822101ff9de07075e9b1f02e18c2725da (diff)
downloadCMake-81beb2875270484e6c192529a53c48084f1a4197.zip
CMake-81beb2875270484e6c192529a53c48084f1a4197.tar.gz
CMake-81beb2875270484e6c192529a53c48084f1a4197.tar.bz2
FindPython: fix handling when FIND_VIRTUALENV == FIRST
Fixes: #20525
-rw-r--r--Modules/FindPython/Support.cmake2
1 files changed, 1 insertions, 1 deletions
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()