Browse Source

Grab the release in debug mode if there is no debug when not on msvc

tamasmeszaros 5 years ago
parent
commit
2222b0cdc9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      cmake/modules/FindOpenVDB.cmake

+ 4 - 0
cmake/modules/FindOpenVDB.cmake

@@ -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)