Follow up for Windows build fixes
This commit is contained in:
parent
a1dc7a5c41
commit
ea6844c31d
@ -242,6 +242,8 @@ foreach(COMPONENT ${OpenVDB_FIND_COMPONENTS})
|
|||||||
else()
|
else()
|
||||||
set(OpenVDB_${COMPONENT}_FOUND FALSE)
|
set(OpenVDB_${COMPONENT}_FOUND FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(OpenVDB_${COMPONENT}_LIBRARY ${OpenVDB_${COMPONENT}_LIBRARY_RELEASE})
|
||||||
else ()
|
else ()
|
||||||
string(TOUPPER "${CMAKE_BUILD_TYPE}" _BUILD_TYPE)
|
string(TOUPPER "${CMAKE_BUILD_TYPE}" _BUILD_TYPE)
|
||||||
|
|
||||||
@ -259,6 +261,7 @@ foreach(COMPONENT ${OpenVDB_FIND_COMPONENTS})
|
|||||||
set(OpenVDB_${COMPONENT}_FOUND FALSE)
|
set(OpenVDB_${COMPONENT}_FOUND FALSE)
|
||||||
endif()
|
endif()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
if(UNIX AND OPENVDB_USE_STATIC_LIBS)
|
if(UNIX AND OPENVDB_USE_STATIC_LIBS)
|
||||||
@ -522,18 +525,17 @@ foreach(COMPONENT ${OpenVDB_FIND_COMPONENTS})
|
|||||||
IMPORTED_LINK_DEPENDENT_LIBRARIES "${_OPENVDB_HIDDEN_DEPENDENCIES}" # non visible deps
|
IMPORTED_LINK_DEPENDENT_LIBRARIES "${_OPENVDB_HIDDEN_DEPENDENCIES}" # non visible deps
|
||||||
INTERFACE_LINK_LIBRARIES "${_OPENVDB_VISIBLE_DEPENDENCIES}" # visible deps (headers)
|
INTERFACE_LINK_LIBRARIES "${_OPENVDB_VISIBLE_DEPENDENCIES}" # visible deps (headers)
|
||||||
INTERFACE_COMPILE_FEATURES cxx_std_11
|
INTERFACE_COMPILE_FEATURES cxx_std_11
|
||||||
)
|
IMPORTED_LOCATION "${OpenVDB_${COMPONENT}_LIBRARY}"
|
||||||
|
|
||||||
if (_is_multi)
|
|
||||||
set_target_properties(OpenVDB::${COMPONENT} PROPERTIES
|
|
||||||
IMPORTED_LOCATION_RELEASE "${OpenVDB_${COMPONENT}_LIBRARY_RELEASE}"
|
IMPORTED_LOCATION_RELEASE "${OpenVDB_${COMPONENT}_LIBRARY_RELEASE}"
|
||||||
IMPORTED_LOCATION_DEBUG "${OpenVDB_${COMPONENT}_LIBRARY_DEBUG}"
|
IMPORTED_LOCATION_DEBUG "${OpenVDB_${COMPONENT}_LIBRARY_DEBUG}"
|
||||||
)
|
)
|
||||||
else ()
|
|
||||||
set_target_properties(OpenVDB::${COMPONENT} PROPERTIES
|
# if (_is_multi)
|
||||||
IMPORTED_LOCATION "${OpenVDB_${COMPONENT}_LIBRARY}"
|
# set_target_properties(OpenVDB::${COMPONENT} PROPERTIES
|
||||||
)
|
# IMPORTED_LOCATION_RELEASE "${OpenVDB_${COMPONENT}_LIBRARY_RELEASE}"
|
||||||
endif ()
|
# IMPORTED_LOCATION_DEBUG "${OpenVDB_${COMPONENT}_LIBRARY_DEBUG}"
|
||||||
|
# )
|
||||||
|
# endif ()
|
||||||
|
|
||||||
if (OPENVDB_USE_STATIC_LIBS)
|
if (OPENVDB_USE_STATIC_LIBS)
|
||||||
set_target_properties(OpenVDB::${COMPONENT} PROPERTIES
|
set_target_properties(OpenVDB::${COMPONENT} PROPERTIES
|
||||||
|
Loading…
Reference in New Issue
Block a user