diff options
author | Guillermo S. Romero <gsr.b3d@infernal-iceberg.com> | 2019-01-15 03:13:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-15 03:14:36 +0300 |
commit | b5a860c9cc023d5aa8708e06e33efa2229dd5047 (patch) | |
tree | aaa476794d27917dab52a560ed0a9f844c3a2493 | |
parent | 07541052a03740f358127b890197517433eb6d8d (diff) |
CMake: Improve handling of missing TBB & OpenVDB
-rw-r--r-- | build_files/cmake/platform/platform_unix.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build_files/cmake/platform/platform_unix.cmake b/build_files/cmake/platform/platform_unix.cmake index f9ea9420e97..b2f880ab8b3 100644 --- a/build_files/cmake/platform/platform_unix.cmake +++ b/build_files/cmake/platform/platform_unix.cmake @@ -245,13 +245,17 @@ if(WITH_OPENVDB) find_package_wrapper(OpenVDB) find_package_wrapper(TBB) find_package_wrapper(Blosc) - if(NOT OPENVDB_FOUND OR NOT TBB_FOUND) + if(NOT TBB_FOUND) + set(WITH_OPENVDB OFF) + set(WITH_OPENVDB_BLOSC OFF) + message(STATUS "TBB not found, disabling OpenVDB") + elseif(NOT OPENVDB_FOUND) set(WITH_OPENVDB OFF) set(WITH_OPENVDB_BLOSC OFF) message(STATUS "OpenVDB not found, disabling it") elseif(NOT BLOSC_FOUND) set(WITH_OPENVDB_BLOSC OFF) - message(STATUS "Blosc not found, disabling it") + message(STATUS "Blosc not found, disabling it for OpenVBD") endif() endif() |