Skip to content

Commit a6d9b7b

Browse files
committed
[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.
1 parent 0869ffa commit a6d9b7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/cmake/modules/AddLLDB.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ endfunction()
383383

384384
function(lldb_find_python_module module)
385385
set(MODULE_FOUND PY_${module}_FOUND)
386-
if (DEFINED ${MODULE_FOUND})
386+
if (${MODULE_FOUND})
387387
return()
388388
endif()
389389

@@ -392,10 +392,10 @@ function(lldb_find_python_module module)
392392
ERROR_QUIET)
393393

394394
if (status)
395-
set(${MODULE_FOUND} OFF CACHE BOOL "Failed to find python module '${module}'")
395+
set(${MODULE_FOUND} OFF PARENT_SCOPE)
396396
message(STATUS "Could NOT find Python module '${module}'")
397397
else()
398-
set(${MODULE_FOUND} ON CACHE BOOL "Found python module '${module}'")
398+
set(${MODULE_FOUND} ON PARENT_SCOPE)
399399
message(STATUS "Found Python module '${module}'")
400400
endif()
401401
endfunction()

0 commit comments

Comments
 (0)