Skip to content

Commit

Permalink
Fixed missing checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrasseur-aneo committed Sep 13, 2023
1 parent 8a3b3ad commit e06c5e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions packages/cpp/ArmoniK.Api.Worker/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ set(PROTO_MESSAGES
list(TRANSFORM PROTO_FILES PREPEND ${PROTO_FILES_DIR}/)
list(TRANSFORM PROTO_MESSAGES PREPEND ${PROTO_FILES_DIR}/)

# Trouver les packages requis
if (UNIX)
find_package(Protobuf REQUIRED)
else()
find_package(Protobuf CONFIG REQUIRED)
endif()
find_package(gRPC CONFIG REQUIRED)
find_package(Threads)

SET(SOURCES_FILES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/source")
SET(HEADER_FILES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/header")
Expand All @@ -32,6 +24,15 @@ file(MAKE_DIRECTORY ${PROJECT_BUILD_DIR}/proto)

add_library(${PROJECT_NAME} ${PROTO_GENERATED_FILES} ${SRC_CLIENT_FILES} ${HEADER_CLIENT_FILES})

# Trouver les packages requis
if (UNIX)
find_package(Protobuf REQUIRED)
else()
find_package(Protobuf CONFIG REQUIRED)
endif()
find_package(gRPC CONFIG REQUIRED)
find_package(Threads)

target_link_libraries(${PROJECT_NAME} PUBLIC protobuf::libprotobuf gRPC::grpc++_unsecure ArmoniK.Api.Common ${PROTO_TARGET})

target_include_directories(${PROJECT_NAME}
Expand Down
2 changes: 1 addition & 1 deletion packages/cpp/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ if(NOT DEFINED SRC_SIMDJSON)
endif()
if(NOT DEFINED SRC_GTEST)
set(SRC_GTEST "https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip")
endif()
endif()

0 comments on commit e06c5e2

Please sign in to comment.