mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-09 10:55:03 +00:00
[OpenMP][Libomptarget] Fix conditional in CMake for remote plugin
The remote offloading plugin's CMakeLists was trying to build if its flag was enabled even if it didn't find gRPC/protobuf. The conditional was wrong, it's fixed by this. Differential Revision: https://reviews.llvm.org/D95574
This commit is contained in:
parent
02bc4c95f0
commit
8a77056256
@ -42,12 +42,13 @@ if (Protobuf_FOUND AND gRPC_FOUND AND PROTOC AND GRPC_CPP_PLUGIN)
|
||||
set(GRPC_INCLUDE_DIR
|
||||
${directory}
|
||||
)
|
||||
|
||||
set(RPC_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include/)
|
||||
set(RPC_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib/)
|
||||
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(server)
|
||||
else()
|
||||
libomptarget_say("Not building remote offloading plugin: required libraries were not found.")
|
||||
endif()
|
||||
|
||||
set(RPC_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include/)
|
||||
set(RPC_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib/)
|
||||
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(server)
|
||||
|
Loading…
x
Reference in New Issue
Block a user