0

CMake(3.9.1) is working perfectly except for one issue. The last project I build in the root CMakeLists is used for the final output project sln name. I have a root CMakeLists that will execute other CMakeLists for the other projects. For example, the root CMakeLists does a project("SomeName") and that "SomeName" will be the output sln.

I was wondering if I can override this to always use a custom name, rather than the last project that was built. (so a project's sln is not some helper library!)

Thank You!

Mike5050
  • 625
  • 1
  • 7
  • 22

1 Answers1

2

Turning my comments into an answer

The Visual Studio solution name is defined by the name given in your root CMakeLists.txt call to project().

And one project() call in the root CMakeLists.txt file is totally sufficient. I thought you would also get a warning if you make multiple project() calls in one CMakeLists.txt.

Reference

Florian
  • 39,996
  • 9
  • 133
  • 149