[CMake] Fixed ProjectGUID

"Sören Freudiger" muffmolch at gmx.de
Wed Jan 19 06:03:39 EST 2011


Okay.
As it seems it's very simpel to change see GUID without any patch:

set_property(CACHE ${target_name}_GUID_CMAKE PROPERTY VALUE ${MY_GUID} )



-------- Original-Nachricht --------
> Datum: Fri, 7 Jan 2011 22:26:31 +0100
> Von: Pau Garcia i Quiles <pgquiles at elpauer.org>
> An: David Cole <david.cole at kitware.com>
> CC: "Sören Freudiger" <muffmolch at gmx.de>, cmake at cmake.org
> Betreff: Re: [CMake] Fixed ProjectGUID

> Hello,
> 
> In Visual Studio 2010, ProjectGUID is a global. This bug provides a
> patch to add global definitions to CMake, but only up to Visual Studio
> 2008. It shouldn't be difficult to update the patch to add support for
> Visual C++ 2010. Setting the ProjectGUID would then be as easy as:
> 
> set_target_properties( thetarget PROPERTIES VS_GLOBAL_ProjectGUID
> "{384A545C-A6F2-4833-9260-F05C46557610}" )
> 
> I opened the bug and provided the code almost two years ago, so it's
> not like I expect CMake developers to suddenly implement it...
> 
> 2011/1/7 David Cole <david.cole at kitware.com>:
> > The guids should remain constant in a given build tree for the life of
> the
> > CMakeCache.txt file.
> >
> > But after you delete that and start in a fresh build tree, you'll get
> fresh
> > guids.
> >
> > If you want constant guids in your vcproj files, they should be built by
> > hand, not with CMake.
> >
> >
> > HTH,
> > David
> >
> >
> > 2011/1/7 "Sören Freudiger" <muffmolch at gmx.de>
> >>
> >> Hello
> >> Is it possible to set the ProjectGUID by CMake? Every time I generate a
> >> vcproj file with CMake the ProjectGUID changes. But we need to have a
> fixed
> >> one (because other projects are including the vcproj).
> >>
> >> Best regards
> >> SirAnn
> >> --
> >> GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit
> >> gratis Handy-Flat! http://portal.gmx.net/de/go/dsl
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Please keep messages on-topic and check the CMake FAQ at:
> >> http://www.cmake.org/Wiki/CMake_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.cmake.org/mailman/listinfo/cmake
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the CMake FAQ at:
> > http://www.cmake.org/Wiki/CMake_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake
> >
> 
> 
> 
> -- 
> Pau Garcia i Quiles
> http://www.elpauer.org
> (Due to my workload, I may need 10 days to answer)

-- 
NEU: FreePhone - kostenlos mobil telefonieren und surfen!			
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the CMake mailing list