summaryrefslogtreecommitdiff
path: root/arch
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 /arch
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 'arch')
-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
5 files changed, 5 insertions, 5 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)