Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'build_files/cmake')
-rw-r--r--build_files/cmake/platform/platform_apple.cmake4
-rw-r--r--build_files/cmake/platform/platform_unix.cmake4
2 files changed, 8 insertions, 0 deletions
diff --git a/build_files/cmake/platform/platform_apple.cmake b/build_files/cmake/platform/platform_apple.cmake
index fe9dd6a58de..90188751fc0 100644
--- a/build_files/cmake/platform/platform_apple.cmake
+++ b/build_files/cmake/platform/platform_apple.cmake
@@ -388,6 +388,10 @@ endif()
if(WITH_TBB)
find_package(TBB)
+ if(NOT TBB_FOUND)
+ message(WARNING "TBB not found, disabling WITH_TBB")
+ set(WITH_TBB OFF)
+ endif()
endif()
if(WITH_POTRACE)
diff --git a/build_files/cmake/platform/platform_unix.cmake b/build_files/cmake/platform/platform_unix.cmake
index fcfde5a07ba..7f62399ac4f 100644
--- a/build_files/cmake/platform/platform_unix.cmake
+++ b/build_files/cmake/platform/platform_unix.cmake
@@ -457,6 +457,10 @@ endif()
if(WITH_TBB)
find_package_wrapper(TBB)
+ if(NOT TBB_FOUND)
+ message(WARNING "TBB not found, disabling WITH_TBB")
+ set(WITH_TBB OFF)
+ endif()
endif()
if(WITH_XR_OPENXR)