adstraw commented on code in PR #11145:
URL: https://github.com/apache/tvm/pull/11145#discussion_r861980348


##########
CMakeLists.txt:
##########
@@ -598,6 +598,15 @@ endif()
 target_link_libraries(tvm PRIVATE ${TVM_LINKER_LIBS} 
${TVM_RUNTIME_LINKER_LIBS})
 target_link_libraries(tvm_runtime PRIVATE ${TVM_RUNTIME_LINKER_LIBS})
 
+if(BUILD_FOR_HEXAGON)
+  include(FetchContent)
+  FetchContent_Declare(googletest SOURCE_DIR 
"${USE_HEXAGON_SDK}/utils/googletest/gtest")
+  set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
+  FetchContent_MakeAvailable(googletest)
+  target_link_libraries(tvm_runtime PUBLIC gtest)

Review Comment:
   Made USE_HEXAGON_GTEST an optional cmake param and enabling / disabling 
Hexagon gtest feature if that cmake param is specified with a path that exists.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to