From 84b1f78847a6b043f198071cc7dcd98eec0d1d19 Mon Sep 17 00:00:00 2001 From: yanghaoran Date: Fri, 27 Nov 2020 10:59:30 +0800 Subject: [PATCH] fix static protobuf install path error --- cmake/external_libs/protobuf_static.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/external_libs/protobuf_static.cmake b/cmake/external_libs/protobuf_static.cmake index 23630d44..1780090f 100755 --- a/cmake/external_libs/protobuf_static.cmake +++ b/cmake/external_libs/protobuf_static.cmake @@ -42,7 +42,7 @@ include(GNUInstallDirs) add_library(ascend_protobuf_static_lib STATIC IMPORTED) set_target_properties(ascend_protobuf_static_lib PROPERTIES - IMPORTED_LOCATION ${PROTOBUF_STATIC_PKG_DIR}/lib64/libascend_protobuf.a + IMPORTED_LOCATION ${PROTOBUF_STATIC_PKG_DIR}/${CMAKE_INSTALL_LIBDIR}/libascend_protobuf.a ) add_library(ascend_protobuf_static INTERFACE)