summaryrefslogtreecommitdiff
path: root/lang
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 /lang
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 'lang')
-rw-r--r--lang/c/CMakeLists.txt2
-rw-r--r--lang/rust/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
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)