summaryrefslogtreecommitdiff
path: root/view/sharedcache
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 /view/sharedcache
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.
Diffstat (limited to 'view/sharedcache')
-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
5 files changed, 6 insertions, 6 deletions
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 "")