cmake(bugfix):disable proxy and service source in open-amp
since we disable find_package(libmetal) so we need to set open_amp target include dirs link to metal target Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
parent
4253001656
commit
0285c0b901
|
@ -100,6 +100,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(WITH_LIBMETAL_FIND OFF)
|
set(WITH_LIBMETAL_FIND OFF)
|
||||||
|
set(WITH_PROXY OFF)
|
||||||
|
|
||||||
if(NOT CMAKE_SYSTEM_PROCESSOR)
|
if(NOT CMAKE_SYSTEM_PROCESSOR)
|
||||||
set(CMAKE_SYSTEM_PROCESSOR ${CONFIG_ARCH})
|
set(CMAKE_SYSTEM_PROCESSOR ${CONFIG_ARCH})
|
||||||
|
@ -108,4 +109,7 @@ endif()
|
||||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/open-amp
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/open-amp
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/open-amp EXCLUDE_FROM_ALL)
|
${CMAKE_CURRENT_BINARY_DIR}/open-amp EXCLUDE_FROM_ALL)
|
||||||
|
|
||||||
|
target_include_directories(
|
||||||
|
open_amp-static PRIVATE $<TARGET_PROPERTY:metal-static,INCLUDE_DIRECTORIES>)
|
||||||
|
|
||||||
nuttx_add_external_library(open_amp-static MODE KERNEL)
|
nuttx_add_external_library(open_amp-static MODE KERNEL)
|
||||||
|
|
Loading…
Reference in New Issue