Skip to content

Commit b2e142b

Browse files
committed
Download a pre-built tbb
1 parent e46ba54 commit b2e142b

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

CMakeLists.txt

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,16 @@ if(NOT simdjson_POPULATED)
130130
FetchContent_MakeAvailable(simdjson)
131131
endif()
132132
# Get TBB
133-
set(TBB_TEST
134-
OFF
135-
CACHE BOOL "Disable TBB tests" FORCE)
133+
set(TBB_TEST OFF CACHE BOOL "Disable TBB tests" FORCE)
134+
set(TBB_EXAMPLES OFF CACHE BOOL "Disable TBB examples" FORCE)
135+
set(TBB_STRICT OFF CACHE BOOL "Disable TBB strict mode" FORCE)
136+
136137
FetchContent_Declare(
137138
tbb
138-
GIT_REPOSITORY https://github.com/uxlfoundation/oneTBB
139-
GIT_TAG v2022.3.0)
140-
FetchContent_GetProperties(tbb)
141-
if(NOT tbb_POPULATED)
142-
FetchContent_MakeAvailable(tbb)
143-
endif()
139+
GIT_REPOSITORY https://github.com/uxlfoundation/oneTBB.git
140+
GIT_TAG v2022.3.0
141+
)
142+
FetchContent_MakeAvailable(tbb)
144143

145144
add_library(dsf STATIC ${SOURCES})
146145
target_compile_definitions(dsf PRIVATE SPDLOG_USE_STD_FORMAT)
@@ -177,6 +176,12 @@ install(
177176
if(BUILD_PYTHON_BINDINGS)
178177
include(FetchContent)
179178

179+
# Check if Doxygen is available for documentation generation
180+
find_package(Doxygen REQUIRED)
181+
if(NOT DOXYGEN_FOUND)
182+
message(FATAL_ERROR "Doxygen is required to build the docstrings.")
183+
endif()
184+
180185
# Get pybind11
181186
FetchContent_Declare(
182187
pybind11

0 commit comments

Comments
 (0)