We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 068e292 + dc824ec commit 627a12fCopy full SHA for 627a12f
src/common/io_exerciser/CMakeLists.txt
@@ -12,4 +12,17 @@ target_link_libraries(object_io_exerciser
12
librados
13
global
14
json_structures
15
-)
+)
16
+
17
+# libstdc++ uses TBB to implement <execution> if it is available,
18
+# which means that if we're going to use <execution>, we need to link
19
+# against TBB if it's available.
20
+#
21
+# It happens to work by accident at present because the optimizer
22
+# optimizes out our one reference, for now, but this breaks compiling
23
+# with `-O0` and will break anyway once we try to do more.
24
+find_package(TBB QUIET)
25
+if(TBB_FOUND)
26
+ message(STATUS "Linking to TBB for implementations of <execution>.")
27
+ target_link_libraries(object_io_exerciser TBB::tbb)
28
+endif(TBB_FOUND)
0 commit comments