From bcf849a4772fb10ce8741b3b257fa0e877979a7e Mon Sep 17 00:00:00 2001 From: John Sanpe Date: Mon, 18 Mar 2024 12:21:39 +0800 Subject: [PATCH] feat bfdev: use built-in header reference path Signed-off-by: John Sanpe --- cmake/bfdev.cmake | 13 ++++++++----- lib/bfdev | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/cmake/bfdev.cmake b/cmake/bfdev.cmake index 82ff43e..26d690b 100644 --- a/cmake/bfdev.cmake +++ b/cmake/bfdev.cmake @@ -1,7 +1,10 @@ -set(BFDEV_SOURCE_PATH ${PROJECT_SOURCE_DIR}/src) +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright(c) 2024 John Sanpe +# -# FIXME: support use system lib and user specific lib +set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) add_subdirectory(lib/bfdev) -include_directories(${PROJECT_SOURCE_DIR}/lib/bfdev/include) -include_directories(${PROJECT_BINARY_DIR}/lib/bfdev/generated) -include_directories(${CMAKE_SOURCE_DIR}/lib/bfdev/arch/generic/include) + +get_property(BFDEV_INCLUDE_DIRS GLOBAL PROPERTY "BFDEV_INCLUDE_DIRS") +include_directories(${BFDEV_INCLUDE_DIRS}) diff --git a/lib/bfdev b/lib/bfdev index 48b8745..ed6879b 160000 --- a/lib/bfdev +++ b/lib/bfdev @@ -1 +1 @@ -Subproject commit 48b8745409150feb67338368bf9762c609624057 +Subproject commit ed6879b25705e98b091ca8d35ca4b6e921f0087e