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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2021-01-29 14:51:21 +0300
committertamasmeszaros <meszaros.q@gmail.com>2021-02-03 17:27:39 +0300
commitf0451439ae4880bcda0089038a644a465f7d0489 (patch)
tree0ea740f276a0032f5dc9cf7f49b59eabbc923603 /cmake
parent73c9f939e07916350bb0a70eeb4fee28da7dad9d (diff)
Fix openvdb configure process with unusable vdb_print
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/OpenVDBUtils.cmake4
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()