Hi,<div><br></div><div>I was wondering if there is a way to undefined a project(). I want to do this to prevent projects from being included in a solution when I generate for Visual Studio. Example:</div><div><br></div><div>
project( A )</div><div>add_executable( A a.cpp )</div><div>project( B )</div><div>add_executable( B b.cpp )</div><div>add_executable( C c.cpp )</div><div><br></div><div>I don't want B to be in A's solution when I open A.sln. I'm assuming this is the behavior, unless project(B) call cancels out project(A)?</div>
<div><br></div><div>Also, I don't want project C to appear in either A or B solutions.</div><div><br></div><div>The reason why I'm doing this is because I have setup my CMake scripts to allow a solution file to be generated for executables (so I can open each executable solution in different instances of visual studio, with ONLY that executable + dependency projects in it). However, since sometimes multiple executable projects can be defined in the same directory, or other libraries that aren't a dependency of that executable, I do not want those to be included in the project().</div>