diff --git a/CMakeLists.txt b/CMakeLists.txt index b1b8a3e8f..e1217c1b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2751,12 +2751,15 @@ if(GTEST_FOUND OR DOWNLOAD_GTEST) list(APPEND TARGETS_OWN ${TARGET_TESTRUNNER}) list(APPEND TARGETS_LINK ${TARGET_TESTRUNNER}) - add_custom_target(run_tests + add_custom_target(run_cxx_tests COMMAND $ ${TESTRUNNER_ARGS} COMMENT Running unit tests DEPENDS ${TARGET_TESTRUNNER} USES_TERMINAL ) + add_custom_target(run_tests + DEPENDS run_cxx_tests + ) if(NOT MSVC OR CMAKE_BUILD_TYPE STREQUAL Release) # On MSVC, Rust tests only work in the release mode because we link our C++ # code with the debug C standard library (/MTd) but Rust only supports