diff --git a/CMakeLists.txt b/CMakeLists.txt index f26672e..608d9ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -203,9 +203,13 @@ else() PUBLIC $ $ + ) - 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 + "$" ${Boost_INCLUDE_DIRS} ) @@ -275,9 +279,11 @@ function(add_action_core_plugin target source) PUBLIC $ $ + ) - SYSTEM PUBLIC - ${STANDALONE_INCLUDE_DIRS} + target_include_directories(${target} SYSTEM + PUBLIC + "$" ${Boost_INCLUDE_DIRS} )