diff --git a/CHANGELOG.md b/CHANGELOG.md index cf69ab65..0c4a4598 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ * `CLI::RuntimeError` added, for easy exit with error codes [#45](https://github.com/CLIUtils/CLI11/pull/45) * The clang-format script is now no longer "hidden" [#48](https://github.com/CLIUtils/CLI11/pull/48) * The order is now preserved for subcommands (list and callbacks) [#49](https://github.com/CLIUtils/CLI11/pull/49) -* Tests now run individually, utilizing CMake 3.10 additions if possible +* Tests now run individually, utilizing CMake 3.10 additions if possible [#50](https://github.com/CLIUtils/CLI11/pull/50) ## Version 1.2 diff --git a/cmake/AddGoogletest.cmake b/cmake/AddGoogletest.cmake index a98e9a06..ee29e378 100644 --- a/cmake/AddGoogletest.cmake +++ b/cmake/AddGoogletest.cmake @@ -44,10 +44,12 @@ macro(add_gtest TESTNAME) if(GOOGLE_TEST_INDIVIDUAL) if(CMAKE_VERSION VERSION_LESS 3.10) gtest_add_tests(TARGET ${TESTNAME} + TEST_PREFIX "${TESTNAME}." TEST_LIST TmpTestList) set_tests_properties(${TmpTestList} PROPERTIES FOLDER "Tests") else() gtest_discover_tests(${TESTNAME} + TEST_PREFIX "${TESTNAME}." PROPERTIES FOLDER "Tests") endif() else()