diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2021-01-29 14:51:21 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2021-04-12 12:21:46 +0300 |
commit | 6f386239c43808a4a3207d62754999d400daea7e (patch) | |
tree | 6397ef453920999aa8ac51c03263392265bbb631 | |
parent | 978c3a6c8984bdf7d852bd071718e70ee11e0063 (diff) |
Fix openvdb configure process with unusable vdb_print
-rw-r--r-- | cmake/modules/OpenVDBUtils.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/modules/OpenVDBUtils.cmake b/cmake/modules/OpenVDBUtils.cmake index f64eda6f2..f79862b83 100644 --- a/cmake/modules/OpenVDBUtils.cmake +++ b/cmake/modules/OpenVDBUtils.cmake @@ -157,7 +157,9 @@ function(OPENVDB_ABI_VERSION_FROM_PRINT OPENVDB_PRINT) endif() set(_OpenVDB_ABI) - string(REGEX REPLACE ".*abi([0-9]*).*" "\\1" _OpenVDB_ABI ${_VDB_PRINT_VERSION_STRING}) + if (_VDB_PRINT_VERSION_STRING) + string(REGEX REPLACE ".*abi([0-9]*).*" "\\1" _OpenVDB_ABI ${_VDB_PRINT_VERSION_STRING}) + endif () if(${_OpenVDB_ABI} STREQUAL ${_VDB_PRINT_VERSION_STRING}) set(_OpenVDB_ABI "") endif() |