Skip to content
Snippets Groups Projects
Commit 5fe81e83 authored by Ben Cumming's avatar Ben Cumming Committed by Alexander Peyser
Browse files

update tbb cmake to use check_git_submodule (#452)

parent 4c66432f
No related branches found
No related tags found
No related merge requests found
...@@ -66,12 +66,10 @@ set(ARB_THREADING_MODEL "cthread" CACHE STRING "set the threading model, one of ...@@ -66,12 +66,10 @@ set(ARB_THREADING_MODEL "cthread" CACHE STRING "set the threading model, one of
set_property(CACHE ARB_THREADING_MODEL PROPERTY STRINGS cthread tbb serial ) set_property(CACHE ARB_THREADING_MODEL PROPERTY STRINGS cthread tbb serial )
if(ARB_THREADING_MODEL MATCHES "tbb") if(ARB_THREADING_MODEL MATCHES "tbb")
# TODO: update to use built-in support for detecting git submodules. include(GitSubmodule) # required for check_git_submodule
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/tbb/.git") check_git_submodule(tbb "${CMAKE_SOURCE_DIR}/tbb")
message(FATAL_ERROR if(NOT tbb_avail)
"\nThe git submodule for tbb must be checked out to use TBB.\n" message(FATAL_ERROR "TBB git submodule required.")
" git submodule init\n"
" git submodule update\n")
endif() endif()
# turn off proxy malloc library and test compilation # turn off proxy malloc library and test compilation
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment