summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Rowe <mark@vector35.com>2025-07-28 19:45:56 -0700
committerMark Rowe <mark@vector35.com>2025-07-30 16:48:38 -0700
commit42878c46ace7ee6d267d26ee87b4d4015b4e4b2b (patch)
tree398ff19da9c4bae81f5c8c87ad15592269a1cc06
parent3e9f6433c838cad88f0d97b3ac9f2aa402b83720 (diff)
[CMake] Specify CONFIGURE_DEPENDS for all file(GLOB ..)
This ensures that CMake detects when files that match the glob are added or removed.
-rw-r--r--arch/arm64/CMakeLists.txt2
-rw-r--r--arch/armv7/CMakeLists.txt2
-rw-r--r--arch/mips/CMakeLists.txt2
-rw-r--r--arch/powerpc/CMakeLists.txt2
-rw-r--r--arch/x86/CMakeLists.txt2
-rw-r--r--defaultabb/CMakeLists.txt2
-rw-r--r--demangler/gnu3/CMakeLists.txt2
-rw-r--r--demangler/msvc/CMakeLists.txt2
-rw-r--r--examples/triage/CMakeLists.txt2
-rw-r--r--examples/uinotification/CMakeLists.txt2
-rw-r--r--examples/workflows/inliner/CMakeLists.txt2
-rw-r--r--examples/workflows/tailcall/CMakeLists.txt2
-rw-r--r--formatter/generic/CMakeLists.txt2
-rw-r--r--lang/c/CMakeLists.txt2
-rw-r--r--lang/rust/CMakeLists.txt2
-rw-r--r--platform/decree/CMakeLists.txt2
-rw-r--r--platform/efi/CMakeLists.txt2
-rw-r--r--platform/freebsd/CMakeLists.txt2
-rw-r--r--platform/linux/CMakeLists.txt2
-rw-r--r--platform/mac-kernel/CMakeLists.txt2
-rw-r--r--platform/mac/CMakeLists.txt2
-rw-r--r--platform/windows-kernel/CMakeLists.txt2
-rw-r--r--platform/windows/CMakeLists.txt2
-rw-r--r--plugins/rtti/CMakeLists.txt2
-rw-r--r--plugins/stack_render_layer/CMakeLists.txt2
-rw-r--r--plugins/warp/api/python/CMakeLists.txt4
-rw-r--r--view/elf/CMakeLists.txt2
-rw-r--r--view/kernelcache/api/CMakeLists.txt4
-rw-r--r--view/kernelcache/api/python/CMakeLists.txt2
-rw-r--r--view/kernelcache/ui/CMakeLists.txt2
-rw-r--r--view/macho/CMakeLists.txt2
-rw-r--r--view/md1rom/CMakeLists.txt2
-rw-r--r--view/pe/CMakeLists.txt2
-rw-r--r--view/sharedcache/api/CMakeLists.txt4
-rw-r--r--view/sharedcache/api/python/CMakeLists.txt2
-rw-r--r--view/sharedcache/core/CMakeLists.txt2
-rw-r--r--view/sharedcache/ui/CMakeLists.txt2
-rw-r--r--view/sharedcache/workflow/CMakeLists.txt2
38 files changed, 41 insertions, 41 deletions
diff --git a/arch/arm64/CMakeLists.txt b/arch/arm64/CMakeLists.txt
index 78907955..d8a3a7a8 100644
--- a/arch/arm64/CMakeLists.txt
+++ b/arch/arm64/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(arch_arm64 CXX C)
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.c
*.h
diff --git a/arch/armv7/CMakeLists.txt b/arch/armv7/CMakeLists.txt
index 0e202a68..802bcf6a 100644
--- a/arch/armv7/CMakeLists.txt
+++ b/arch/armv7/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h
armv7_disasm/*.c
diff --git a/arch/mips/CMakeLists.txt b/arch/mips/CMakeLists.txt
index e0305c93..688da8d0 100644
--- a/arch/mips/CMakeLists.txt
+++ b/arch/mips/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h
mips/*.c
diff --git a/arch/powerpc/CMakeLists.txt b/arch/powerpc/CMakeLists.txt
index a58a0dd2..8b771bbc 100644
--- a/arch/powerpc/CMakeLists.txt
+++ b/arch/powerpc/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
arch_ppc.cpp
assembler.cpp
disassembler.cpp
diff --git a/arch/x86/CMakeLists.txt b/arch/x86/CMakeLists.txt
index bdb72436..70dd24cb 100644
--- a/arch/x86/CMakeLists.txt
+++ b/arch/x86/CMakeLists.txt
@@ -20,7 +20,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES *.cpp *.h
+file(GLOB SOURCES CONFIGURE_DEPENDS *.cpp *.h
${PROJECT_SOURCE_DIR}/xed/src/common/*.c
${PROJECT_SOURCE_DIR}/xed/src/dec/*.c
${PROJECT_BINARY_DIR}/obj/*.c)
diff --git a/defaultabb/CMakeLists.txt b/defaultabb/CMakeLists.txt
index 1594ec8a..48b9ee79 100644
--- a/defaultabb/CMakeLists.txt
+++ b/defaultabb/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h)
diff --git a/demangler/gnu3/CMakeLists.txt b/demangler/gnu3/CMakeLists.txt
index 0c249e0e..f957aa77 100644
--- a/demangler/gnu3/CMakeLists.txt
+++ b/demangler/gnu3/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(demangle_gnu3)
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.c
*.h)
diff --git a/demangler/msvc/CMakeLists.txt b/demangler/msvc/CMakeLists.txt
index 1549e02e..b1255991 100644
--- a/demangler/msvc/CMakeLists.txt
+++ b/demangler/msvc/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(demangle_msvc)
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.c
*.h)
diff --git a/examples/triage/CMakeLists.txt b/examples/triage/CMakeLists.txt
index 9e0e5363..d999c995 100644
--- a/examples/triage/CMakeLists.txt
+++ b/examples/triage/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(triage CXX C)
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h)
diff --git a/examples/uinotification/CMakeLists.txt b/examples/uinotification/CMakeLists.txt
index ea222734..33b23171 100644
--- a/examples/uinotification/CMakeLists.txt
+++ b/examples/uinotification/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(uinotification CXX C)
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h)
diff --git a/examples/workflows/inliner/CMakeLists.txt b/examples/workflows/inliner/CMakeLists.txt
index 7346260d..7729edd0 100644
--- a/examples/workflows/inliner/CMakeLists.txt
+++ b/examples/workflows/inliner/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(workflow_inliner)
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.c
*.h)
diff --git a/examples/workflows/tailcall/CMakeLists.txt b/examples/workflows/tailcall/CMakeLists.txt
index 26b21f17..9686d6f7 100644
--- a/examples/workflows/tailcall/CMakeLists.txt
+++ b/examples/workflows/tailcall/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(workflow_tailcall)
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.c
*.h)
diff --git a/formatter/generic/CMakeLists.txt b/formatter/generic/CMakeLists.txt
index e2c7c91b..f459ccba 100644
--- a/formatter/generic/CMakeLists.txt
+++ b/formatter/generic/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h)
diff --git a/lang/c/CMakeLists.txt b/lang/c/CMakeLists.txt
index 3ff40edd..d7b3031b 100644
--- a/lang/c/CMakeLists.txt
+++ b/lang/c/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h)
diff --git a/lang/rust/CMakeLists.txt b/lang/rust/CMakeLists.txt
index dde7c3fa..3a9a74ba 100644
--- a/lang/rust/CMakeLists.txt
+++ b/lang/rust/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h)
diff --git a/platform/decree/CMakeLists.txt b/platform/decree/CMakeLists.txt
index 13a02af8..59bb259f 100644
--- a/platform/decree/CMakeLists.txt
+++ b/platform/decree/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
${PROJECT_SOURCE_DIR}/*.cpp
${PROJECT_SOURCE_DIR}/*.h)
diff --git a/platform/efi/CMakeLists.txt b/platform/efi/CMakeLists.txt
index 6ad3d5bc..f85aad59 100644
--- a/platform/efi/CMakeLists.txt
+++ b/platform/efi/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h)
diff --git a/platform/freebsd/CMakeLists.txt b/platform/freebsd/CMakeLists.txt
index e5d0aa2a..067c3add 100644
--- a/platform/freebsd/CMakeLists.txt
+++ b/platform/freebsd/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
${PROJECT_SOURCE_DIR}/*.cpp
${PROJECT_SOURCE_DIR}/*.h)
diff --git a/platform/linux/CMakeLists.txt b/platform/linux/CMakeLists.txt
index 5bf30969..0c576fce 100644
--- a/platform/linux/CMakeLists.txt
+++ b/platform/linux/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
${PROJECT_SOURCE_DIR}/*.cpp
${PROJECT_SOURCE_DIR}/*.h)
diff --git a/platform/mac-kernel/CMakeLists.txt b/platform/mac-kernel/CMakeLists.txt
index b3d22eb4..216d2f2c 100644
--- a/platform/mac-kernel/CMakeLists.txt
+++ b/platform/mac-kernel/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
${PROJECT_SOURCE_DIR}/*.cpp
${PROJECT_SOURCE_DIR}/*.h)
diff --git a/platform/mac/CMakeLists.txt b/platform/mac/CMakeLists.txt
index 7dd918c7..cf7968f8 100644
--- a/platform/mac/CMakeLists.txt
+++ b/platform/mac/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
${PROJECT_SOURCE_DIR}/*.cpp
${PROJECT_SOURCE_DIR}/*.h)
diff --git a/platform/windows-kernel/CMakeLists.txt b/platform/windows-kernel/CMakeLists.txt
index 3e3e83d4..b7db8f49 100644
--- a/platform/windows-kernel/CMakeLists.txt
+++ b/platform/windows-kernel/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h)
diff --git a/platform/windows/CMakeLists.txt b/platform/windows/CMakeLists.txt
index 81cbdd1c..595740f4 100644
--- a/platform/windows/CMakeLists.txt
+++ b/platform/windows/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h)
diff --git a/plugins/rtti/CMakeLists.txt b/plugins/rtti/CMakeLists.txt
index 25891070..6db8a973 100644
--- a/plugins/rtti/CMakeLists.txt
+++ b/plugins/rtti/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(rtti)
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.c
*.h)
diff --git a/plugins/stack_render_layer/CMakeLists.txt b/plugins/stack_render_layer/CMakeLists.txt
index 5368d1e7..fed7e7e2 100644
--- a/plugins/stack_render_layer/CMakeLists.txt
+++ b/plugins/stack_render_layer/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(stack_render_layer)
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.c
*.h)
diff --git a/plugins/warp/api/python/CMakeLists.txt b/plugins/warp/api/python/CMakeLists.txt
index 8e6003c0..98337285 100644
--- a/plugins/warp/api/python/CMakeLists.txt
+++ b/plugins/warp/api/python/CMakeLists.txt
@@ -1,8 +1,8 @@
-cmake_minimum_required(VERSION 3.9...3.15 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(warp-python-api)
-file(GLOB PYTHON_SOURCES ${PROJECT_SOURCE_DIR}/*.py)
+file(GLOB PYTHON_SOURCES CONFIGURE_DEPENDS ${PROJECT_SOURCE_DIR}/*.py)
list(REMOVE_ITEM PYTHON_SOURCES ${PROJECT_SOURCE_DIR}/_warpcore.py)
list(REMOVE_ITEM PYTHON_SOURCES ${PROJECT_SOURCE_DIR}/enums.py)
diff --git a/view/elf/CMakeLists.txt b/view/elf/CMakeLists.txt
index 97a7ddeb..c50eaaea 100644
--- a/view/elf/CMakeLists.txt
+++ b/view/elf/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h)
diff --git a/view/kernelcache/api/CMakeLists.txt b/view/kernelcache/api/CMakeLists.txt
index 3097777b..b825b6ff 100644
--- a/view/kernelcache/api/CMakeLists.txt
+++ b/view/kernelcache/api/CMakeLists.txt
@@ -1,7 +1,7 @@
-cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(kernelcacheapi)
-file(GLOB BN_MACHO_API_SOURCES *.cpp *.h)
+file(GLOB BN_MACHO_API_SOURCES CONFIGURE_DEPENDS *.cpp *.h)
add_library(kernelcacheapi OBJECT ${BN_MACHO_API_SOURCES})
diff --git a/view/kernelcache/api/python/CMakeLists.txt b/view/kernelcache/api/python/CMakeLists.txt
index 4d3f52cd..55dfa308 100644
--- a/view/kernelcache/api/python/CMakeLists.txt
+++ b/view/kernelcache/api/python/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(kernelcache-python-api)
-file(GLOB PYTHON_SOURCES ${PROJECT_SOURCE_DIR}/*.py)
+file(GLOB PYTHON_SOURCES CONFIGURE_DEPENDS ${PROJECT_SOURCE_DIR}/*.py)
list(REMOVE_ITEM PYTHON_SOURCES ${PROJECT_SOURCE_DIR}/_kernelcachecore.py)
list(REMOVE_ITEM PYTHON_SOURCES ${PROJECT_SOURCE_DIR}/enums.py)
diff --git a/view/kernelcache/ui/CMakeLists.txt b/view/kernelcache/ui/CMakeLists.txt
index b2397486..e2f04d0d 100644
--- a/view/kernelcache/ui/CMakeLists.txt
+++ b/view/kernelcache/ui/CMakeLists.txt
@@ -6,7 +6,7 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt6 COMPONENTS Core Gui Widgets REQUIRED)
-file(GLOB SOURCES *.cpp *.h)
+file(GLOB SOURCES CONFIGURE_DEPENDS *.cpp *.h)
list(FILTER SOURCES EXCLUDE REGEX moc_.*)
list(FILTER SOURCES EXCLUDE REGEX qrc_.*)
diff --git a/view/macho/CMakeLists.txt b/view/macho/CMakeLists.txt
index dcc5c422..99b395ad 100644
--- a/view/macho/CMakeLists.txt
+++ b/view/macho/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES *.cpp *.h ../../objectivec/*)
+file(GLOB SOURCES CONFIGURE_DEPENDS *.cpp *.h ../../objectivec/*)
if(DEMO)
add_library(view_macho STATIC ${SOURCES})
diff --git a/view/md1rom/CMakeLists.txt b/view/md1rom/CMakeLists.txt
index 8fe90e8b..c5acdd74 100644
--- a/view/md1rom/CMakeLists.txt
+++ b/view/md1rom/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h)
diff --git a/view/pe/CMakeLists.txt b/view/pe/CMakeLists.txt
index 283ee094..62a631a6 100644
--- a/view/pe/CMakeLists.txt
+++ b/view/pe/CMakeLists.txt
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
endif()
-file(GLOB SOURCES
+file(GLOB SOURCES CONFIGURE_DEPENDS
*.cpp
*.h)
diff --git a/view/sharedcache/api/CMakeLists.txt b/view/sharedcache/api/CMakeLists.txt
index 68d891bb..a1620365 100644
--- a/view/sharedcache/api/CMakeLists.txt
+++ b/view/sharedcache/api/CMakeLists.txt
@@ -1,7 +1,7 @@
-cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(sharedcacheapi)
-file(GLOB BN_MACHO_API_SOURCES *.cpp *.h)
+file(GLOB BN_MACHO_API_SOURCES CONFIGURE_DEPENDS *.cpp *.h)
add_library(sharedcacheapi OBJECT ${BN_MACHO_API_SOURCES})
diff --git a/view/sharedcache/api/python/CMakeLists.txt b/view/sharedcache/api/python/CMakeLists.txt
index b4c1a071..8e091eea 100644
--- a/view/sharedcache/api/python/CMakeLists.txt
+++ b/view/sharedcache/api/python/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(sharedcache-python-api)
-file(GLOB PYTHON_SOURCES ${PROJECT_SOURCE_DIR}/*.py)
+file(GLOB PYTHON_SOURCES CONFIGURE_DEPENDS ${PROJECT_SOURCE_DIR}/*.py)
list(REMOVE_ITEM PYTHON_SOURCES ${PROJECT_SOURCE_DIR}/_sharedcachecore.py)
list(REMOVE_ITEM PYTHON_SOURCES ${PROJECT_SOURCE_DIR}/enums.py)
diff --git a/view/sharedcache/core/CMakeLists.txt b/view/sharedcache/core/CMakeLists.txt
index 1abd3b36..3eb2318a 100644
--- a/view/sharedcache/core/CMakeLists.txt
+++ b/view/sharedcache/core/CMakeLists.txt
@@ -9,7 +9,7 @@ if((NOT BN_API_PATH) AND (NOT BN_INTERNAL_BUILD))
endif()
endif()
-file(GLOB_RECURSE SOURCES *.cpp *.h ../../../objectivec/*)
+file(GLOB_RECURSE SOURCES CONFIGURE_DEPENDS *.cpp *.h ../../../objectivec/*)
add_library(sharedcachecore OBJECT ${SOURCES})
diff --git a/view/sharedcache/ui/CMakeLists.txt b/view/sharedcache/ui/CMakeLists.txt
index 5d065722..4fc1a5d4 100644
--- a/view/sharedcache/ui/CMakeLists.txt
+++ b/view/sharedcache/ui/CMakeLists.txt
@@ -6,7 +6,7 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt6 COMPONENTS Core Gui Widgets REQUIRED)
-file(GLOB SOURCES *.cpp *.h)
+file(GLOB SOURCES CONFIGURE_DEPENDS *.cpp *.h)
list(FILTER SOURCES EXCLUDE REGEX moc_.*)
list(FILTER SOURCES EXCLUDE REGEX qrc_.*)
diff --git a/view/sharedcache/workflow/CMakeLists.txt b/view/sharedcache/workflow/CMakeLists.txt
index 495cf149..b54771d8 100644
--- a/view/sharedcache/workflow/CMakeLists.txt
+++ b/view/sharedcache/workflow/CMakeLists.txt
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(sharedcacheworkflow)
-file(GLOB SOURCES *.cpp *.h)
+file(GLOB SOURCES CONFIGURE_DEPENDS *.cpp *.h)
add_library(sharedcacheworkflow OBJECT ${SOURCES})
set(COMPILE_DEFS "")