boostorg / boost

Super-project for modularized Boost
https://github.com/boostorg/wiki/wiki/Getting-Started%3A-Overview
Boost Software License 1.0
7.16k stars 1.76k forks source link

Set Visual Studio solution filename #735

Open vinniefalco opened 1 year ago

vinniefalco commented 1 year ago

If we could change CMakeLists.txt for the superproject then we can set the name of the solution otherwise it is always Boost.sln which is not ideal:

if( NOT DEFINED BOOST_PROJECT_NAME )
  set( BOOST_PROJECT_NAME "Boost" )
endif()
project( ${BOOST_PROJECT_NAME} VERSION 1.82.0 LANGUAGES CXX )
vinniefalco commented 1 year ago

The problem is that if you build more than one solution for different libraries, the Task Manager shows them all with the name Boost and you can't tell one from the other when switching

pdimov commented 1 year ago

No, sorry. The project name is significant and changing it just to rename the .sln file is not the right fix. You should ask in the CMake discourse whether there's a way to change the name of the generated .sln file without changing the CMake project name.

vinniefalco commented 1 year ago

Yeah, I'll do that, but note that you are currently calling the resulting solution "Boost" no matter what is in it (for example, even if you told cmake to only build one library). Although I guess that's one way of making "Boost" smaller.

vinniefalco commented 1 year ago

https://discourse.cmake.org/t/canonical-way-to-set-the-visual-studio-solution-sln-filename/7482

pdimov commented 1 year ago

"Boost" is the name of the superproject. The libraries have their own project names ("boost_lib").

vinniefalco commented 1 year ago

"Boost" is the name of the superproject

Yes well my change renames the superproject...not any individual library.