Skip to content

Commit 6bcf2f8

Browse files
committed
Fix linking error visible in conda: undefined reference to clock_gettime
1 parent 6e79c6d commit 6bcf2f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/modules/AddRootBench.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ 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} ${ARG_LIBRARIES} gbenchmark RBSupport)
46+
target_link_libraries(${benchmark} ${ARG_LIBRARIES} gbenchmark RBSupport rt)
4747
#ROOT_PATH_TO_STRING(mangled_name ${benchmark} PATH_SEPARATOR_REPLACEMENT "-")
4848
#ROOT_ADD_TEST(gbench${mangled_name}
4949
# COMMAND ${benchmark}
@@ -180,7 +180,7 @@ function(RB_GENERATE_DICTIONARY dictname)
180180
list(APPEND FULL_PATH_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/${hdr})
181181
endif()
182182
endforeach()
183-
183+
184184
ROOT_GENERATE_DICTIONARY(${dictname} ${FULL_PATH_HEADERS}
185185
MODULE ${dictname}
186186
LINKDEF ${ARG_LINKDEF}

0 commit comments

Comments
 (0)