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")