I would like to generate visual studio project files on linux using cmake.
Unfortunately, the visual studio project file generator is not enabled by default on linux.
The cmake build instructions don't mention how to enable this feature on linux. It seems like the generators are enabled based on the host platform cmake is being build. Has anybody a patched cmake to enable the Visual Studio Project Generator on linux ?
We have tools that work on linux and windows for analyzing projects by parsing .sln/.vcxproj files. However generating .sln/.vcxproj files on windows is quite inconvenient as our main development is done on linux/osx.
CMakegenerated projects are not that useful outside the machine that built them. They still requireCMakeand the paths thatCMakeadded to the project would be wrong / nonsense.CMakesource code is available. You can build it usingCMaketo generate a Makefile. I am not sure how easy it is to get it to build Visual Studio support for a linux build. I have not builtCMakein a few years.#ifndef(_WIN32), looks like there is nothing inherent that would make building the vs generator on linux not possible. Someone just needs to remove the ifndefs ...