Skip to content

Commit

Permalink
The rt library does not exist on osx.
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvassilev committed Dec 4, 2020
1 parent 485216a commit 7e06ec2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/modules/AddRootBench.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ function(RB_ADD_GBENCHMARK benchmark)
# FIXME: For better coherence we could restrict the libraries the test suite could link
# against. For example, tests in Core should link only against libCore. This could be tricky
# to implement because some ROOT components create more than one library.
target_link_libraries(${benchmark} PUBLIC ${ARG_LIBRARIES} gbenchmark RBSupport rt)
target_link_libraries(${benchmark} PUBLIC ${ARG_LIBRARIES} gbenchmark RBSupport)
if (NOT APPLE)
target_link_libraries(${benchmark} PUBLIC rt)
endif()
#ROOT_PATH_TO_STRING(mangled_name ${benchmark} PATH_SEPARATOR_REPLACEMENT "-")
#ROOT_ADD_TEST(gbench${mangled_name}
# COMMAND ${benchmark}
Expand Down

0 comments on commit 7e06ec2

Please sign in to comment.