feat: add conditional gRPC include directory in CMake configuration
- Introduced a conditional inclusion of the Abseil library in the yaze_util target when YAZE_ENABLE_GRPC is enabled, enhancing support for gRPC features. - This change improves modularity and ensures that necessary dependencies are included only when required, streamlining the build process.
This commit is contained in:
@@ -35,6 +35,12 @@ target_include_directories(yaze_util PUBLIC
|
||||
${PROJECT_BINARY_DIR}
|
||||
)
|
||||
|
||||
if(YAZE_ENABLE_GRPC)
|
||||
target_include_directories(yaze_util PRIVATE
|
||||
${CMAKE_BINARY_DIR}/_deps/grpc-src/third_party/abseil-cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
target_link_libraries(yaze_util PUBLIC
|
||||
yaze_common
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user