Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,929
    • Issues 3,929
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & 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
  • CMake
  • CMakeCMake
  • Issues
  • #17701
Closed
Open
Created Jan 31, 2018 by Anton Kryukov@akryuk

FindBoost unable to find libraries built by b2 with g++-7 using --layout=versioned

I tried to build my project with boost 1.66 (built by b2 with g++-7 using --layout=versioned) on Ubuntu 14.04, but FindBoost.cmake could not find the libraries because of the architecture tag. That's because the CMAKE_CXX_COMPILER_ARCHITECTURE_ID variable is not set for this compiler. I modified FindBoost to try CMAKE_LIBRARY_ARCHITECTURE and it worked for me (see attached). CMAKE_LIBRARY_ARCHITECTURE does not seem to be set for Visual C++, so this is not a replacement for CMAKE_CXX_COMPILER_ARCHITECTURE_ID. I don't have easy access to other compilers/platforms.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking