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,166
    • Issues 4,166
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • 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
  • Merge requests
  • !5984

CMakeDetermineCompilerABI: Extract lib arch from implicit object file paths

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Robert Maynard requested to merge robertmaynard/cmake:correct_CMAKE_LIBRARY_ARCHITECTURE_regression into master Apr 05, 2021
  • Overview 20
  • Commits 2
  • Pipelines 4
  • Changes 27

The change in !5773 (merged) caused CMAKE_LIBRARY_ARCHITECTURE to be populated on non-multiarch platforms if their compilers happen to use $arch/$version library directories. Revert the use of versioned library paths. Use another solution for NVHPC.

The NVHPC compiler does not have any implicit link directories that can be used to detect CMAKE_LIBRARY_ARCHITECTURE, but it does have implicit object files. Extract implicit object file paths from link lines and check them for the CMAKE_LIBRARY_ARCHITECTURE pattern.

Fixes: #22024 (closed)
Backport: release
Topic-rename: nvhpc-lib-arch

Edited Apr 05, 2021 by Brad King
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: correct_CMAKE_LIBRARY_ARCHITECTURE_regression