From a6d9b7ba2722953960b83fbacda1757349f00156 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 29 Feb 2024 09:11:29 -0800 Subject: [PATCH] [lldb] Don't cache lldb_find_python_module result Don't cache lldb_find_python_module result as that requires you to do a clean build after installing the dependency. --- lldb/cmake/modules/AddLLDB.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake index 328e883ddbe5..fdc4ee0c05d7 100644 --- a/lldb/cmake/modules/AddLLDB.cmake +++ b/lldb/cmake/modules/AddLLDB.cmake @@ -383,7 +383,7 @@ endfunction() function(lldb_find_python_module module) set(MODULE_FOUND PY_${module}_FOUND) - if (DEFINED ${MODULE_FOUND}) + if (${MODULE_FOUND}) return() endif() @@ -392,10 +392,10 @@ function(lldb_find_python_module module) ERROR_QUIET) if (status) - set(${MODULE_FOUND} OFF CACHE BOOL "Failed to find python module '${module}'") + set(${MODULE_FOUND} OFF PARENT_SCOPE) message(STATUS "Could NOT find Python module '${module}'") else() - set(${MODULE_FOUND} ON CACHE BOOL "Found python module '${module}'") + set(${MODULE_FOUND} ON PARENT_SCOPE) message(STATUS "Found Python module '${module}'") endif() endfunction()