diff --git a/cmake/external_libs/gtest.cmake b/cmake/external_libs/gtest.cmake index c7ef56f293e..b9f5ca277f3 100644 --- a/cmake/external_libs/gtest.cmake +++ b/cmake/external_libs/gtest.cmake @@ -23,10 +23,10 @@ if(BUILD_LITE) -DANDROID_STL=${ANDROID_STL} ${CMAKE_OPTION}) endif() -else() - if(NOT ENABLE_GLIBCXX) - set(gtest_CXXFLAGS "${gtest_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0") - endif() +endif() + +if(NOT ENABLE_GLIBCXX) + set(gtest_CXXFLAGS "${gtest_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0") endif() if(ENABLE_GITEE) diff --git a/mindspore/lite/test/CMakeLists.txt b/mindspore/lite/test/CMakeLists.txt index e21aac2cf33..a10b6bbd65d 100644 --- a/mindspore/lite/test/CMakeLists.txt +++ b/mindspore/lite/test/CMakeLists.txt @@ -194,3 +194,7 @@ endif() if(ENABLE_MODEL_OBF) target_link_libraries(lite-test ${OBF_LIB_DIR}/libmsdeobfuscator-lite.so) endif() + +if(MSLITE_ENABLE_CONVERTER AND MSLITE_ENABLE_ACL) + target_link_libraries(lite-test lite_acl_mid mindspore_shared_lib) +endif()