diff --git a/cmake/AddTritonUnitTest.cmake b/cmake/AddTritonUnitTest.cmake index 24fb20a72b8c..2eda7df3723e 100644 --- a/cmake/AddTritonUnitTest.cmake +++ b/cmake/AddTritonUnitTest.cmake @@ -35,5 +35,5 @@ function(add_triton_ut) # Without the TEST_DISCOVERY_TIMEOUT, the tests randomly time out on my mac # laptop. I think the issue may be that the very first time you run a program # it's a bit slow. - gtest_discover_tests(${__NAME} PROPERTIES TEST_DISCOVERY_TIMEOUT 60) + gtest_discover_tests(${__NAME} DISCOVERY_TIMEOUT 60) endfunction()