diff options
author | Brad King <brad.king@kitware.com> | 2021-11-17 13:44:12 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-11-17 13:44:29 (GMT) |
commit | 908d2cd136be3165d391c18777890798a18f96c3 (patch) | |
tree | d81f26df818afca3ef252c30ab93241b89c17ca4 /Modules/GoogleTest.cmake | |
parent | d2e10c4d8dd7dc32ae775a6382c5277308639271 (diff) | |
parent | 1bf6d5979d7fceae8b8a32129b5816bae459fb96 (diff) | |
download | CMake-908d2cd136be3165d391c18777890798a18f96c3.zip CMake-908d2cd136be3165d391c18777890798a18f96c3.tar.gz CMake-908d2cd136be3165d391c18777890798a18f96c3.tar.bz2 |
Merge topic 'gtest_discover_tests-PRE_TEST-dep'
1bf6d5979d gtest_discover_tests: Re-run PRE_TEST discovery on any arg change
715af43124 Tests: Fix and update wrongly named GoogleTest stdout file
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6728
Diffstat (limited to 'Modules/GoogleTest.cmake')
-rw-r--r-- | Modules/GoogleTest.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/GoogleTest.cmake b/Modules/GoogleTest.cmake index efc33e3..f5f4f02 100644 --- a/Modules/GoogleTest.cmake +++ b/Modules/GoogleTest.cmake @@ -516,7 +516,8 @@ function(gtest_discover_tests TARGET) string(CONCAT ctest_include_content "if(EXISTS \"$<TARGET_FILE:${TARGET}>\")" "\n" " if(NOT EXISTS \"${ctest_tests_file}\" OR" "\n" - " NOT \"${ctest_tests_file}\" IS_NEWER_THAN \"$<TARGET_FILE:${TARGET}>\")" "\n" + " NOT \"${ctest_tests_file}\" IS_NEWER_THAN \"$<TARGET_FILE:${TARGET}>\" OR\n" + " NOT \"${ctest_tests_file}\" IS_NEWER_THAN \"\${CMAKE_CURRENT_LIST_FILE}\")\n" " include(\"${_GOOGLETEST_DISCOVER_TESTS_SCRIPT}\")" "\n" " gtest_discover_tests_impl(" "\n" " TEST_EXECUTABLE" " [==[" "$<TARGET_FILE:${TARGET}>" "]==]" "\n" |