diff --git a/cmake/test_harness/test_harness.cmake b/cmake/test_harness/test_harness.cmake index 641322684..c869013e7 100644 --- a/cmake/test_harness/test_harness.cmake +++ b/cmake/test_harness/test_harness.cmake @@ -102,13 +102,13 @@ macro(Cabana_add_tests) if(_device STREQUAL THREADS OR _device STREQUAL OPENMP) foreach(_thread ${CABANA_UNIT_TEST_NUMTHREADS}) add_test(NAME ${_target}_nt_${_thread} COMMAND - ${NONMPI_PRECOMMAND} $ ${gtest_args} --kokkos-threads=${_thread}) + ${NONMPI_PRECOMMAND} $ ${gtest_args} --kokkos-num-threads=${_thread}) if(_device STREQUAL OPENMP) set_property(TEST ${_target}_nt_${_thread} PROPERTY ENVIRONMENT OMP_NUM_THREADS=${_thread}) endif() if(VALGRIND_FOUND) add_test(NAME ${_target}_nt_${_thread}_valgrind COMMAND - ${NONMPI_PRECOMMAND} ${VALGRIND_EXECUTABLE} ${VALGRIND_ARGS} $ ${gtest_args} --kokkos-threads=${_thread}) + ${NONMPI_PRECOMMAND} ${VALGRIND_EXECUTABLE} ${VALGRIND_ARGS} $ ${gtest_args} --kokkos-num-threads=${_thread}) if(_device STREQUAL OPENMP) set_property(TEST ${_target}_nt_${_thread}_valgrind PROPERTY ENVIRONMENT OMP_NUM_THREADS=${_thread}) endif()