From e42aaba91a62a48efc1351f8682210d07285e62d Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Fri, 3 Mar 2023 12:18:25 -0500 Subject: Add CONFIGURE_DEPENDS to CMakeLists.txt --- CMakeLists.txt | 2 +- python/CMakeLists.txt | 2 +- rust/CMakeLists.txt | 2 +- 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 -- cgit v1.3.1