diff --git a/CMakeLists.txt b/CMakeLists.txt index 173305d..17cedff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,7 +19,6 @@ if (ENABLE_OPEN_SRC) include(cmake/external_libs/protoc.cmake) include(cmake/external_libs/securec.cmake) include(cmake/external_libs/json.cmake) - include(cmake/external_libs/gtest.cmake) include(cmake/FindModule.cmake) include(cmake/intf_pub_linux.cmake) @@ -42,6 +41,7 @@ if (ENABLE_OPEN_SRC) elseif(ENABLE_GE_COV OR ENABLE_GE_UT) message(STATUS "Runing on llt mode, no need to depend other component") elseif(ENABLE_PARSER_UT OR ENABLE_PARSER_COV) + include(cmake/external_libs/gtest.cmake) add_subdirectory(tests) else() if(DEFINED ENV{ASCEND_CUSTOM_PATH})