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

github.com/supermerill/SuperSlicer.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>2019-12-17 19:08:43 +0300
committertamasmeszaros <meszaros.q@gmail.com>2019-12-17 19:08:55 +0300
commite25cd1ce1a2051d5ec61568120beb5fc340eafb7 (patch)
treeaebe7d402974986f4c1d4e78291a10c804b0a881 /cmake
parent4e27faa236ae3ac8eeb603e638ae3db5f6ee027f (diff)
Grab the release in debug mode if there is no debug when not on msvc
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindOpenVDB.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/modules/FindOpenVDB.cmake b/cmake/modules/FindOpenVDB.cmake
index 84b5f4116..7bc44bebb 100644
--- a/cmake/modules/FindOpenVDB.cmake
+++ b/cmake/modules/FindOpenVDB.cmake
@@ -247,6 +247,10 @@ foreach(COMPONENT ${OpenVDB_FIND_COMPONENTS})
set(OpenVDB_${COMPONENT}_LIBRARY ${OpenVDB_${COMPONENT}_LIBRARY_${_BUILD_TYPE}})
+ if (NOT MSVC AND NOT OpenVDB_${COMPONENT}_LIBRARY)
+ set(OpenVDB_${COMPONENT}_LIBRARY ${OpenVDB_${COMPONENT}_LIBRARY_RELEASE})
+ endif ()
+
list(APPEND OpenVDB_LIB_COMPONENTS ${OpenVDB_${COMPONENT}_LIBRARY})
if(OpenVDB_${COMPONENT}_LIBRARY)