From 2ca2b90d62ae3bde4fd8a23e3667d48cd6191c1e Mon Sep 17 00:00:00 2001 From: Yanghello Date: Mon, 8 Jun 2020 19:26:43 +0800 Subject: [PATCH] fix cryptopp lib building bug in gcc8 (#24945) --- cmake/external/cryptopp.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/external/cryptopp.cmake b/cmake/external/cryptopp.cmake index a3ca8d69a4d..af5dd0e2c9b 100644 --- a/cmake/external/cryptopp.cmake +++ b/cmake/external/cryptopp.cmake @@ -50,6 +50,8 @@ set(CRYPTOPP_CMAKE_ARGS ${COMMON_CMAKE_ARGS} -DCMAKE_BUILD_TYPE=${THIRD_PARTY_BUILD_TYPE} -DCMAKE_CXX_FLAGS=${CRYPTOPP_CMAKE_CXX_FLAGS} -DCMAKE_CXX_FLAGS_RELEASE=${CMAKE_CXX_FLAGS_RELEASE} + -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} + -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER} ) INCLUDE_DIRECTORIES(${CRYPTOPP_INCLUDE_DIR}) -- GitLab