Skip to content

Commit b11de06

Browse files
authored
tests: explicit extensions required in modern CMake (#330)
1 parent 4a10c2c commit b11de06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function(add_benchmark NAME)
1717
message(AUTHOR_WARNING "add_benchmark: extra arguments ignored: ${__UNPARSED_ARGUMENTS}")
1818
endif()
1919

20-
set(SOURCE ${NAME})
20+
set(SOURCE ${NAME}.cpp)
2121
set(NAME benchmark_${NAME})
2222

2323
if(DEFINED BUILD_TESTING AND NOT BUILD_TESTING)

0 commit comments

Comments
 (0)