Skip to content

Commit 42878c4

Browse files
committed
[CMake] Specify CONFIGURE_DEPENDS for all file(GLOB ..)
This ensures that CMake detects when files that match the glob are added or removed.
1 parent 3e9f643 commit 42878c4

File tree

38 files changed

+41
-41
lines changed

38 files changed

+41
-41
lines changed

arch/arm64/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
22

33
project(arch_arm64 CXX C)
44

5-
file(GLOB SOURCES
5+
file(GLOB SOURCES CONFIGURE_DEPENDS
66
*.cpp
77
*.c
88
*.h

arch/armv7/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
66
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
77
endif()
88

9-
file(GLOB SOURCES
9+
file(GLOB SOURCES CONFIGURE_DEPENDS
1010
*.cpp
1111
*.h
1212
armv7_disasm/*.c

arch/mips/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
66
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
77
endif()
88

9-
file(GLOB SOURCES
9+
file(GLOB SOURCES CONFIGURE_DEPENDS
1010
*.cpp
1111
*.h
1212
mips/*.c

arch/powerpc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
66
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
77
endif()
88

9-
file(GLOB SOURCES
9+
file(GLOB SOURCES CONFIGURE_DEPENDS
1010
arch_ppc.cpp
1111
assembler.cpp
1212
disassembler.cpp

arch/x86/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if(NOT BN_INTERNAL_BUILD)
2020
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
2121
endif()
2222

23-
file(GLOB SOURCES *.cpp *.h
23+
file(GLOB SOURCES CONFIGURE_DEPENDS *.cpp *.h
2424
${PROJECT_SOURCE_DIR}/xed/src/common/*.c
2525
${PROJECT_SOURCE_DIR}/xed/src/dec/*.c
2626
${PROJECT_BINARY_DIR}/obj/*.c)

defaultabb/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if(NOT BN_INTERNAL_BUILD)
66
add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api)
77
endif()
88

9-
file(GLOB SOURCES
9+
file(GLOB SOURCES CONFIGURE_DEPENDS
1010
*.cpp
1111
*.h)
1212

demangler/gnu3/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
22

33
project(demangle_gnu3)
44

5-
file(GLOB SOURCES
5+
file(GLOB SOURCES CONFIGURE_DEPENDS
66
*.cpp
77
*.c
88
*.h)

demangler/msvc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
22

33
project(demangle_msvc)
44

5-
file(GLOB SOURCES
5+
file(GLOB SOURCES CONFIGURE_DEPENDS
66
*.cpp
77
*.c
88
*.h)

examples/triage/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
22

33
project(triage CXX C)
44

5-
file(GLOB SOURCES
5+
file(GLOB SOURCES CONFIGURE_DEPENDS
66
*.cpp
77
*.h)
88

examples/uinotification/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
22

33
project(uinotification CXX C)
44

5-
file(GLOB SOURCES
5+
file(GLOB SOURCES CONFIGURE_DEPENDS
66
*.cpp
77
*.h)
88

0 commit comments

Comments
 (0)