File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -451,6 +451,9 @@ if (NOT TARGET CBLAS::CBLAS)
451451
452452 add_library (${LIBRARY_TARGET} ${TARGET_TYPE} IMPORTED )
453453 set_target_properties (${LIBRARY_TARGET} PROPERTIES IMPORTED_LOCATION ${TARGET_IMPORTED_LOCATION} )
454+ if (WIN32 AND TARGET_TYPE STREQUAL "SHARED" )
455+ set_target_properties (${LIBRARY_TARGET} PROPERTIES IMPORTED_IMPLIB "${LIBRARY_PATH} " )
456+ endif ()
454457 set_target_properties (${LIBRARY_TARGET} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CBLAS_INCLUDE_DIRS} " )
455458 set_target_properties (${LIBRARY_TARGET} PROPERTIES INTERFACE_LINK_OPTIONS "${CBLAS_LINKER_FLAGS} " )
456459
Original file line number Diff line number Diff line change @@ -478,6 +478,9 @@ if (NOT TARGET LAPACKE::LAPACKE)
478478
479479 add_library (${LIBRARY_TARGET} ${TARGET_TYPE} IMPORTED )
480480 set_target_properties (${LIBRARY_TARGET} PROPERTIES IMPORTED_LOCATION ${TARGET_IMPORTED_LOCATION} )
481+ if (WIN32 AND TARGET_TYPE STREQUAL "SHARED" )
482+ set_target_properties (${LIBRARY_TARGET} PROPERTIES IMPORTED_IMPLIB "${LIBRARY_PATH} " )
483+ endif ()
481484 set_target_properties (${LIBRARY_TARGET} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${LAPACKE_INCLUDE_DIRS} " )
482485 set_target_properties (${LIBRARY_TARGET} PROPERTIES INTERFACE_LINK_OPTIONS "${LAPACKE_LINKER_FLAGS} " )
483486
Original file line number Diff line number Diff line change @@ -380,6 +380,9 @@ if (NOT TARGET METIS::METIS)
380380
381381 add_library (${LIBRARY_TARGET} ${TARGET_TYPE} IMPORTED )
382382 set_target_properties (${LIBRARY_TARGET} PROPERTIES IMPORTED_LOCATION ${TARGET_IMPORTED_LOCATION} )
383+ if (WIN32 AND TARGET_TYPE STREQUAL "SHARED" )
384+ set_target_properties (${LIBRARY_TARGET} PROPERTIES IMPORTED_IMPLIB "${LIBRARY_PATH} " )
385+ endif ()
383386 set_target_properties (${LIBRARY_TARGET} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${METIS_INCLUDE_DIRS} " )
384387 list (APPEND METIS_LIBRARY_TARGETS ${LIBRARY_TARGET} )
385388 endforeach ()
Original file line number Diff line number Diff line change @@ -492,6 +492,9 @@ if (NOT TARGET PETSc::PETSc)
492492
493493 add_library (${LIBRARY_TARGET} ${TARGET_TYPE} IMPORTED )
494494 set_target_properties (${LIBRARY_TARGET} PROPERTIES IMPORTED_LOCATION ${TARGET_IMPORTED_LOCATION} )
495+ if (WIN32 AND TARGET_TYPE STREQUAL "SHARED" )
496+ set_target_properties (${LIBRARY_TARGET} PROPERTIES IMPORTED_IMPLIB "${LIBRARY_PATH} " )
497+ endif ()
495498 set_target_properties (${LIBRARY_TARGET} PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${PETSC_INCLUDES} " )
496499 target_compile_definitions (${LIBRARY_TARGET} INTERFACE ${PETSC_DEFINITIONS} )
497500 list (APPEND PETSC_LIBRARY_TARGETS ${LIBRARY_TARGET} )
You can’t perform that action at this time.
0 commit comments