File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ function(RB_ADD_GBENCHMARK benchmark)
4343 # FIXME: For better coherence we could restrict the libraries the test suite could link
4444 # against. For example, tests in Core should link only against libCore. This could be tricky
4545 # to implement because some ROOT components create more than one library.
46- target_link_libraries (${benchmark} PUBLIC ${ARG_LIBRARIES} gbenchmark RBSupport rt)
46+ target_link_libraries (${benchmark} PUBLIC ${ARG_LIBRARIES} gbenchmark RBSupport)
47+ if (NOT APPLE )
48+ target_link_libraries (${benchmark} PUBLIC rt)
49+ endif ()
4750 #ROOT_PATH_TO_STRING(mangled_name ${benchmark} PATH_SEPARATOR_REPLACEMENT "-")
4851 #ROOT_ADD_TEST(gbench${mangled_name}
4952 # COMMAND ${benchmark}
You can’t perform that action at this time.
0 commit comments