Skip to content

Commit

Permalink
feat bfdev: use built-in header reference path
Browse files Browse the repository at this point in the history
Signed-off-by: John Sanpe <[email protected]>
  • Loading branch information
sanpeqf committed Mar 18, 2024
1 parent 71b6d2e commit bcf849a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions cmake/bfdev.cmake
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
#

# 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})
2 changes: 1 addition & 1 deletion lib/bfdev

0 comments on commit bcf849a

Please sign in to comment.