[CMake] Print the correct variables
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 26 Jul 2019 20:58:10 +0000 (20:58 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 26 Jul 2019 20:58:10 +0000 (20:58 +0000)
This didn't get updated after we decided to set PYTHON_MAJOR_VERSION and
PYTHON_MINOR_VERSION in find_python_libs_windows, instead of parsing the
variables ourselves.

llvm-svn: 367153

lldb/cmake/modules/LLDBConfig.cmake

index b627c24..38cbc03 100644 (file)
@@ -226,7 +226,7 @@ if (NOT LLDB_DISABLE_PYTHON)
     # version for the system provided interpreter and libraries.
     if (NOT PYTHON_VERSION_MAJOR VERSION_EQUAL pythonlibs_major OR
         NOT PYTHON_VERSION_MINOR VERSION_EQUAL pythonlibs_minor)
-      message(FATAL_ERROR "Found incompatible Python interpreter (${python_major}.${python_minor})"
+      message(FATAL_ERROR "Found incompatible Python interpreter (${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})"
                           " and Python libraries (${pythonlibs_major}.${pythonlibs_minor})")
     endif()
   endif()