tests: explicit extensions required in modern CMake (#330)

This commit is contained in:
Henry Schreiner 2021-09-26 06:31:00 -04:00 committed by GitHub
parent 4a10c2c11b
commit b11de06c43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ function(add_benchmark NAME)
message(AUTHOR_WARNING "add_benchmark: extra arguments ignored: ${__UNPARSED_ARGUMENTS}")
endif()
set(SOURCE ${NAME})
set(SOURCE ${NAME}.cpp)
set(NAME benchmark_${NAME})
if(DEFINED BUILD_TESTING AND NOT BUILD_TESTING)