VS: <LANG>_VISIBILITY_PRESET not considered
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.