Gaetano
Gaetano

Reputation: 1160

how to compile cmake on linux so that it can generate vsproj files?

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.

Upvotes: 4

Views: 642

Answers (1)

Kaveh Vahedipour
Kaveh Vahedipour

Reputation: 3477

You cannot generate Visual Studio Solutions under Linux. Nowadays you can generate Visual Studio solutions via ssh to a Windows docker container.

Upvotes: 3

Related Questions