You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the following error when I activate the Test Generator Module and run CMake:
CMake Error at cmake/helpers/TestGenModule.cmake:215 (gtest_discover_tests):
Unknown CMake command "gtest_discover_tests".
Please add include(GoogleTest) before gtest_discover_tests at the end of the cmake/helpers/TestGenModule.cmake file:
include(GoogleTest)
# Automatically add tests by querying the compiled test executable for available tests
message(STATUS "Discover and add tests to the target \"${${PROJECT_NAME}_TEST_BIN_TARGET}.\"")
gtest_discover_tests("${${PROJECT_NAME}_TEST_BIN_TARGET}"
WORKING_DIRECTORY "${${PROJECT_NAME}_TESTS_DIR}"
)
Thank you,
MN
The text was updated successfully, but these errors were encountered:
Hi @josephgarnier
I got the following error when I activate the Test Generator Module and run CMake:
Please add
include(GoogleTest)
beforegtest_discover_tests
at the end of thecmake/helpers/TestGenModule.cmake
file:Thank you,
MN
The text was updated successfully, but these errors were encountered: