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,810
    • Issues 3,810
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • 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

An update will be applied May 24th, between 12PM and 1PM EDT (UTC -400). The site may be slow during that time.

  • CMake
  • CMakeCMake
  • Issues
  • #21450

Closed
Open
Created Nov 16, 2020 by Jean-Philippe Boivin@jpboivin

VS: <LANG>_VISIBILITY_PRESET not considered

Hello,

The issue might sound strange as the property (<LANG>_VISIBILITY_PRESET) is really more for Unix-like platforms using GCC/Clang, but currently, the property is only evaluated in the target generator shared by Make and Ninja. Until now, I guess it was fine as the Visual Studio generator was normally only used for Windows-based platforms, but I've seen in CMake 3.19 (RC) release notes that Android was going to be supported, so it might impact that platform. I've not tested the support for Android in the Visual Studio generator yet, so it is more a supposition.

A bit more context. Where I work, we maintain a custom fork a CMake to support platforms under NDAs. Some of these platforms are cross-compiled from a Windows host and are using Visual Studio. As such, we derive from the Visual Studio generator to support non-Windows platforms that use GCC/Clang and supports the -fvisibility compile options. Currently, the property is not usable and we must manually specify the compiler flag.

Edited Nov 16, 2020 by Brad King
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking