Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 4,168
    • Issues 4,168
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 18
    • Merge requests 18
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #22878
Closed
Open
Issue created Nov 08, 2021 by Sergiu Deitsch@sergiudContributor

FindLAPACK passes the NVHPC /fortranlibs switch to MSVC

I use FindLAPACK in an MSVC environment where the LAPACK_lapack_LIBRARY CMake cache variable is manually set to the corresponding liblapack.lib. Then, however, the unsupported -fortranlibs switch is passed to MSVC linker as well resulting in the following warning:

LINK : warning LNK4044: unrecognized option '/fortranlibs'; ignored 

FindLAPACK should check whether linker supports this flag first and only then pass it.

Edited Nov 09, 2021 by Sergiu Deitsch
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking