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.
1 parent b1aaba6 commit 913f619Copy full SHA for 913f619
cmake/FindTBB.cmake
@@ -98,6 +98,13 @@ if (UNIX)
98
# has itanium/*
99
set(_TBB_COMPILER ${TBB_COMPILER})
100
set(_TBB_ARCHITECTURE ${TBB_ARCHITECTURE})
101
+
102
+ # Fix for clang compiler
103
+ # https://www.threadingbuildingblocks.org/docs/help/reference/appendices/known_issues/linux_os.html
104
+ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
105
+ string(REPLACE "." "0" TBB_USE_GLIBCXX_VERSION ${CMAKE_CXX_COMPILER_VERSION})
106
+ add_definitions(-DTBB_USE_GLIBCXX_VERSION=${TBB_USE_GLIBCXX_VERSION})
107
+ endif()
108
endif (APPLE)
109
endif (UNIX)
110
0 commit comments