From 42878c46ace7ee6d267d26ee87b4d4015b4e4b2b Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Mon, 28 Jul 2025 19:45:56 -0700 Subject: [CMake] Specify CONFIGURE_DEPENDS for all file(GLOB ..) This ensures that CMake detects when files that match the glob are added or removed. --- arch/arm64/CMakeLists.txt | 2 +- arch/armv7/CMakeLists.txt | 2 +- arch/mips/CMakeLists.txt | 2 +- arch/powerpc/CMakeLists.txt | 2 +- arch/x86/CMakeLists.txt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'arch') 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) -- cgit v1.3.1