fix file cmake
This commit is contained in:
@@ -203,9 +203,13 @@ else()
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
|
||||
SYSTEM PUBLIC
|
||||
${STANDALONE_INCLUDE_DIRS}
|
||||
# SYSTEM phải đứng ngay sau tên target. Include trong cây nguồn phải bọc BUILD_INTERFACE,
|
||||
# nếu không install(EXPORT) fail "prefixed in the source directory" khi package nằm in-tree.
|
||||
target_include_directories(action_core SYSTEM
|
||||
PUBLIC
|
||||
"$<BUILD_INTERFACE:${STANDALONE_INCLUDE_DIRS}>"
|
||||
${Boost_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
@@ -275,9 +279,11 @@ function(add_action_core_plugin target source)
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
|
||||
SYSTEM PUBLIC
|
||||
${STANDALONE_INCLUDE_DIRS}
|
||||
target_include_directories(${target} SYSTEM
|
||||
PUBLIC
|
||||
"$<BUILD_INTERFACE:${STANDALONE_INCLUDE_DIRS}>"
|
||||
${Boost_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user