feat add include for third_party
Some checks failed
android / build (push) Failing after 35s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Failing after 1m33s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 1m39s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 1m55s
linux-arm-gcc / linux-gcc-arm (Release) (push) Failing after 1m27s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 1m25s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Failing after 2m36s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 1m25s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 1m30s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Failing after 1m25s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 4m46s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Failing after 4m54s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 35s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 48s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Failing after 1m24s
linux-x86-gcc / linux-gcc (Debug) (push) Failing after 4m11s
linux-x86-gcc / linux-gcc (Release) (push) Failing after 4m28s

This commit is contained in:
tqcq 2024-06-14 12:31:48 +08:00
parent 231e74c749
commit a3531031c3

View File

@ -64,9 +64,7 @@ get_git_commit_hash(GIT_COMMIT_HASH)
get_git_commit_date(GIT_COMMIT_DATE) get_git_commit_date(GIT_COMMIT_DATE)
get_git_commit_subject(GIT_COMMIT_SUBJECT) get_git_commit_subject(GIT_COMMIT_SUBJECT)
include_directories("third_party/json" "third_party/inja" "third_party/sigslot") set(THIRD_PARTY_INCLUDE_DIRS "third_party/json" "third_party/inja" "third_party/sigslot" "${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include")
include_directories("${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include")
add_subdirectory("third_party/context") add_subdirectory("third_party/context")
add_subdirectory("third_party/zlib") add_subdirectory("third_party/zlib")
add_subdirectory("third_party/fmt") add_subdirectory("third_party/fmt")
@ -205,6 +203,7 @@ target_include_directories(
"${CMAKE_CURRENT_BINARY_DIR}/third_party/glog" "${CMAKE_CURRENT_BINARY_DIR}/third_party/glog"
"${CMAKE_CURRENT_SOURCE_DIR}/third_party/glog/src" "${CMAKE_CURRENT_SOURCE_DIR}/third_party/glog/src"
"${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}"
${THIRD_PARTY_INCLUDE_DIRS}
RPIVATE RPIVATE
"${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include") "${CMAKE_CURRENT_BINARY_DIR}/third_party/gflags/include")