On 06/01/2015 07:35 PM, Davy Durham wrote:
> My plan is for it to simply pull a directory property called, 
> "VS_STARTUP_PROJECT".  However, I don't see how to access directory 
> properties from cmGlobalVisualStudioGenerator.  They seem to be 
> available from a cmLocalGenerator but not cmGlobalGenerator.

The WriteSLNFile method takes a "root" cmLocalGenerator.
You can call root->GetMakefile()->GetProperty("...") to get
the property for the solution file rooted at that directory.
It looks like some of the code paths may already thread the
"root" down to where you need it.  Otherwise you'll have to
add it to some method signatures.

Thanks,
-Brad

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to