Conversation
ruslo
left a comment
There was a problem hiding this comment.
on MSVC I wasn't able to add a Fortran compiler. But for Unicode support I need to build with MSVC (I wasn't able to make boost::filesystem and MINGW behave).
Not sure what it means. You have to use Fortran from MinGW to build Lapack with MSVC toolchain?
| VERSION | ||
| "3.7.1" | ||
| URL | ||
| https://github.com/NeroBurner/lapack-prebuilt/archive/v3.7.1-msvc-amd64.zip |
There was a problem hiding this comment.
I've saved it to hunter-packages/lapack, please use this link:
|
|
||
| # determine architecture | ||
| include(hunter_check_toolchain_definition) | ||
| hunter_check_toolchain_definition(NAME "_WIN64" DEFINED WIN64_defined) |
There was a problem hiding this comment.
Please use _WIN64_defined or _hunter_win64_defined here.
There was a problem hiding this comment.
Add hunter_report_broken_package if _WIN64 is not defined, example:
- add lapack 3.7.1 prebuilt for MSVC amd64 - report brocken package if not on MSVC and amd64 - download zip uploaded directly to release 3.7.1-p0
eea439c to
6bacdb1
Compare
|
updated
When compiling a project with MSVC which requests the package LAPACK, instead of downloading the source and trying to compiling the Fortran code I let hunter download the prebuilt C-dll. The dll and lib files are from http://icl.cs.utk.edu/lapack-for-windows/lapack/index.html#libraries. |
That's kind of what I was really asking. Why we can't compile this from sources? |
|
compiling from source would be a mixed toolchain. For LAPACK we need mingw-w64-gfortran, for the rest of the project MSVC is used. I don't know how to do that |
Okay, that's what I was thinking about. One more use case for this feature request: https://github.com/ruslo/hunter/issues/495 |
|
Shall I add a pr to add MSVC tests?
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
After tests passed I will merge it to master and update |
|
could you push your local |
Done |
add lapack 3.7.1 prebuilt for MSVC amd64
This adds a prebuilt dll hosted at https://github.com/NeroBurner/lapack-prebuilt
on MSVC I wasn't able to add a Fortran compiler. But for Unicode support I need to build with MSVC (I wasn't able to make boost::filesystem and MINGW behave).
My solution is to download the prebuilt c-library and provide a cmake-config file when LAPACK is requested when using MSVC
currently I only provide amd64 architecture