Add support for VS2017 Linux project generation
I'd like to see Linux projects added to the Visual Studio generator, so one can generate VS projects from existing CMake Linux projects in order to use VS for development and compiling remotely.
According to this SO answer, the following properties are necessary for VS 2017 to recognize a project a Linux project:
set_target_properties(
HelloLinux
PROPERTIES
VS_GLOBAL_KEYWORD "Linux"
VS_GLOBAL_ApplicationType "Linux"
VS_GLOBAL_ApplicationTypeRevision "1.0"
VS_GLOBAL_TargetLinuxPlatform "Generic"
VS_GLOBAL_LinuxProjectType "{D51BCBC9-82E9-4017-911E-C93873C4EA2B}"
)
But the comment also notes
This actually works and produces a Linux .vcxproj project that is accepted by VS. But since we sidestepped CMake here, none of the other compiler/linker options you define in your CMake script will be assigned.
which is why native cmake support would be preferred.
os:windows triage:feature ~"gen:msvc"