We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bcc26c commit e087e7fCopy full SHA for e087e7f
cmake/FindMKL.cmake
@@ -91,5 +91,12 @@ endif()
91
if(NOT TARGET MKL::MKL_SCALAPACK)
92
find_library(MKL_SCALAPACK NAMES mkl_scalapack_lp64 HINTS ${MKLROOT}/lib ${MKLROOT}/lib/intel64)
93
message(STATUS "Found MKL_SCALAPACK: ${MKL_SCALAPACK}")
94
- add_library(MKL::MKL_SCALAPACK OBJECT IMPORTED MKL_SCALAPACK)
+ if(MKL_SCALAPACK)
95
+ # create an IMPORTED target that points to the discovered library file
96
+ add_library(MKL::MKL_SCALAPACK UNKNOWN IMPORTED)
97
+ set_target_properties(MKL::MKL_SCALAPACK PROPERTIES
98
+ IMPORTED_LOCATION "${MKL_SCALAPACK}"
99
+ INTERFACE_INCLUDE_DIRECTORIES "${MKL_INCLUDE}"
100
+ )
101
+ endif()
102
endif()
0 commit comments