From 5c61412059a00b85ae113e54d30bb5a77ad93632 Mon Sep 17 00:00:00 2001 From: duongtd Date: Mon, 10 Aug 2026 11:16:39 +0700 Subject: [PATCH] fix file cmake --- CMakeLists.txt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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} )