From 6043fca3eb22bb433ab6ff7bd1f8da8c4ce62ca0 Mon Sep 17 00:00:00 2001 From: nekosu Date: Sun, 8 Oct 2023 13:13:22 +0800 Subject: [PATCH] fix: add pic --- source/MaaRpc/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/source/MaaRpc/CMakeLists.txt b/source/MaaRpc/CMakeLists.txt index c19da92eb..e1cfafcb0 100644 --- a/source/MaaRpc/CMakeLists.txt +++ b/source/MaaRpc/CMakeLists.txt @@ -5,6 +5,7 @@ file(GLOB maa_proto_src generated/*.h generated/*.cc) file(GLOB maa_rpc_src implement/*.h implement/*.cpp API/*.cpp) add_library(MaaRpcProto ${maa_proto_src}) +set_property(TARGET MaaRpcProto PROPERTY POSITION_INDEPENDENT_CODE ON) target_link_libraries(MaaRpcProto PUBLIC protobuf::libprotobuf