Skip to content

Commit

Permalink
Fix TBB and Clang compiler issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegeri committed Sep 24, 2018
1 parent b1aaba6 commit 913f619
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/FindTBB.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ if (UNIX)
# has itanium/*
set(_TBB_COMPILER ${TBB_COMPILER})
set(_TBB_ARCHITECTURE ${TBB_ARCHITECTURE})

# Fix for clang compiler
# https://www.threadingbuildingblocks.org/docs/help/reference/appendices/known_issues/linux_os.html
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
string(REPLACE "." "0" TBB_USE_GLIBCXX_VERSION ${CMAKE_CXX_COMPILER_VERSION})
add_definitions(-DTBB_USE_GLIBCXX_VERSION=${TBB_USE_GLIBCXX_VERSION})
endif()
endif (APPLE)
endif (UNIX)

Expand Down

0 comments on commit 913f619

Please sign in to comment.