Grab the release in debug mode if there is no debug when not on msvc
This commit is contained in:
parent
ab1bcad8c7
commit
2222b0cdc9
1 changed files with 4 additions and 0 deletions
|
@ -235,6 +235,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)
|
||||
|
|
Loading…
Reference in a new issue