1
0
mirror of synced 2024-12-22 12:40:00 +01:00

Add missing "NAME" keyword for parameter to add_test

This commit is contained in:
Kavi Jivan 2019-02-01 04:07:26 +00:00
parent 0168a1297a
commit f4b59a146b

View File

@ -51,7 +51,7 @@ Then, to add a test, I'd recommend the following macro:
macro(package_add_test TESTNAME)
add_executable(${TESTNAME} ${ARGN})
target_link_libraries(${TESTNAME} gtest gmock gtest_main)
add_test(${TESTNAME} COMMAND ${TESTNAME})
add_test(NAME ${TESTNAME} COMMAND ${TESTNAME})
set_target_properties(${TESTNAME} PROPERTIES FOLDER tests)
endmacro()