summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2023-03-03 12:18:25 -0500
committerJosh Ferrell <josh@vector35.com>2023-03-06 15:05:51 -0500
commite42aaba91a62a48efc1351f8682210d07285e62d (patch)
tree570686ffaf8b50d7251b2d204936cd9d29bfdcd8
parent3679217a17675ca326edc91e2aee658168351d55 (diff)
Add CONFIGURE_DEPENDS to CMakeLists.txt
-rw-r--r--CMakeLists.txt2
-rw-r--r--python/CMakeLists.txt2
-rw-r--r--rust/CMakeLists.txt2
3 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fecfb6f1..3fe70f98 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,7 +13,7 @@ if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
endif()
endif()
-file(GLOB BN_API_SOURCES *.cpp *.h json/json.h json/json-forwards.h)
+file(GLOB BN_API_SOURCES CONFIGURE_DEPENDS *.cpp *.h json/json.h json/json-forwards.h)
if(NOT DEMO)
list(APPEND BN_API_SOURCES json/jsoncpp.cpp)
endif()
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index 5068a585..6a295a92 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
project(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}/_binaryninjacore.py)
list(REMOVE_ITEM PYTHON_SOURCES ${PROJECT_SOURCE_DIR}/enums.py)
diff --git a/rust/CMakeLists.txt b/rust/CMakeLists.txt
index 40146bf6..c46d9909 100644
--- a/rust/CMakeLists.txt
+++ b/rust/CMakeLists.txt
@@ -4,7 +4,7 @@ project(rust_api)
set(CARGO_API_VERSION stable-2022-12-15)
-file(GLOB RUST_API_SOURCES
+file(GLOB RUST_API_SOURCES CONFIGURE_DEPENDS
../binaryninjacore.h
binaryninjacore-sys/build.rs
binaryninjacore-sys/Cargo.toml