From a3531031c3a74ae04ba656b78f5d7574e961fa27 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Fri, 14 Jun 2024 12:31:48 +0800 Subject: [PATCH] feat add include for third_party --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 20f3364..d740247 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,9 +64,7 @@ get_git_commit_hash(GIT_COMMIT_HASH) get_git_commit_date(GIT_COMMIT_DATE) get_git_commit_subject(GIT_COMMIT_SUBJECT) -include_directories("third_party/json" "third_party/inja" "third_party/sigslot") - -include_directories("${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include") +set(THIRD_PARTY_INCLUDE_DIRS "third_party/json" "third_party/inja" "third_party/sigslot" "${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include") add_subdirectory("third_party/context") add_subdirectory("third_party/zlib") add_subdirectory("third_party/fmt") @@ -205,6 +203,7 @@ target_include_directories( "${CMAKE_CURRENT_BINARY_DIR}/third_party/glog" "${CMAKE_CURRENT_SOURCE_DIR}/third_party/glog/src" "${CMAKE_CURRENT_SOURCE_DIR}" + ${THIRD_PARTY_INCLUDE_DIRS} RPIVATE "${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include")