Set OpenVDB_FOUND if no debug but release is there and not on MSVC

This commit is contained in:
tamasmeszaros 2020-01-27 13:51:44 +01:00
parent 9f085c133a
commit 3e5dce771f

View File

@ -240,7 +240,7 @@ foreach(COMPONENT ${OpenVDB_FIND_COMPONENTS})
list(FIND CMAKE_CONFIGURATION_TYPES "Debug" _has_debug) list(FIND CMAKE_CONFIGURATION_TYPES "Debug" _has_debug)
if(OpenVDB_${COMPONENT}_LIBRARY_RELEASE AND (_has_debug LESS 0 OR OpenVDB_${COMPONENT}_LIBRARY_DEBUG)) if(OpenVDB_${COMPONENT}_LIBRARY_RELEASE AND (NOT MSVC OR _has_debug LESS 0 OR OpenVDB_${COMPONENT}_LIBRARY_DEBUG))
set(OpenVDB_${COMPONENT}_FOUND TRUE) set(OpenVDB_${COMPONENT}_FOUND TRUE)
else() else()
set(OpenVDB_${COMPONENT}_FOUND FALSE) set(OpenVDB_${COMPONENT}_FOUND FALSE)