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:
authorCampbell Barton <ideasman42@gmail.com>2021-06-15 17:02:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-15 17:08:34 +0300
commit0c75a98561d33630af198e10d33a235bf9f320c7 (patch)
treeb9aecb83bbe0f706f945e03cbf3edc4ea4b9b754
parent174ed69c1ba8cb8ca7ac39d41922bc203f78326f (diff)
CMake: disable TBB when not found
-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)