Skip to content

Commit

Permalink
#0: fix gtest build error
Browse files Browse the repository at this point in the history
  • Loading branch information
TT-billteng committed Jun 10, 2024
1 parent e3c2acb commit a9293f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ CPMAddPackage(
GITHUB_REPOSITORY google/googletest
GIT_TAG release-1.12.1
VERSION 1.12.1
OPTIONS "INSTALL_GTEST ON" "gtest_force_shared_crt ON"
OPTIONS "INSTALL_GTEST OFF" "gtest_force_shared_crt ON"
)


Expand Down
2 changes: 2 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

enable_testing()
include(GoogleTest)
add_library(test_common_libs INTERFACE)
target_include_directories(test_common_libs INTERFACE "${gtest_SOURCE_DIR}/include")
target_link_libraries(test_common_libs INTERFACE pthread stdc++fs gtest gtest_main)

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tt_metal/tt_metal)
Expand Down

0 comments on commit a9293f7

Please sign in to comment.