mirror of https://github.com/google/benchmark.git
link to benchmark directly for tests that aren't link_main_test (#1576)
This commit is contained in:
parent
46d3c84518
commit
efc89f0b52
|
@ -45,7 +45,7 @@ target_link_libraries(output_test_helper PRIVATE benchmark::benchmark)
|
|||
|
||||
macro(compile_benchmark_test name)
|
||||
add_executable(${name} "${name}.cc")
|
||||
target_link_libraries(${name} benchmark::benchmark_main ${CMAKE_THREAD_LIBS_INIT})
|
||||
target_link_libraries(${name} benchmark::benchmark ${CMAKE_THREAD_LIBS_INIT})
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "NVHPC")
|
||||
target_compile_options( ${name} PRIVATE --diag_suppress partial_override )
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue