Merge branch 'master' into 'master'
Add missing "NAME" keyword for parameter to add_test See merge request CLIUtils/modern-cmake!10
This commit is contained in:
commit
cbf9698634
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user