Skip to content

Commit fa8b8ab

Browse files
committed
simplify if
1 parent fb43621 commit fa8b8ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lldb/cmake/modules/FindPythonAndSwig.cmake

+1-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ else()
6666
endif()
6767

6868
set(LLDB_RECOMMENDED_PYTHON "3.8")
69-
if(Python3_LIBRARIES AND Python3_INCLUDE_DIRS AND Python3_EXECUTABLE AND LLDB_ENABLE_SWIG
70-
AND "${Python3_VERSION}" VERSION_LESS "${LLDB_RECOMMENDED_PYTHON}")
69+
if(PYTHONANDSWIG_FOUND AND "${Python3_VERSION}" VERSION_LESS "${LLDB_RECOMMENDED_PYTHON}")
7170
message(WARNING "Using Python ${Python3_VERSION}. ${LLDB_RECOMMENDED_PYTHON} "
7271
"is recommended and will be required from LLDB 21.")
7372
endif()

0 commit comments

Comments
 (0)