Skip to content

Commit

Permalink
Use imported target with namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Jan 20, 2025
1 parent ab8394e commit 1da7345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/dart_defs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ function(dart_benchmarks)
${target_name} PRIVATE ${_ARG_INCLUDE_DIRS}
)

target_link_libraries(${target_name} PRIVATE benchmark benchmark_main)
target_link_libraries(${target_name} PRIVATE benchmark::benchmark benchmark::benchmark_main)

if(UNIX)
# gbenchmark requies pthread when compiled on a Unix machine
Expand Down
2 changes: 1 addition & 1 deletion tests/benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# POSSIBILITY OF SUCH DAMAGE.

if(DART_USE_SYSTEM_GOOGLEBENCHMARK)
find_package(benchmark REQUIRED)
find_package(benchmark CONFIG REQUIRED)
else()
include(FetchContent)
FetchContent_Declare(
Expand Down

0 comments on commit 1da7345

Please sign in to comment.