diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2019-12-17 19:08:43 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2019-12-17 19:08:55 +0300 |
commit | e25cd1ce1a2051d5ec61568120beb5fc340eafb7 (patch) | |
tree | aebe7d402974986f4c1d4e78291a10c804b0a881 /cmake | |
parent | 4e27faa236ae3ac8eeb603e638ae3db5f6ee027f (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.cmake | 4 |
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) |