[CMake] Fixed ProjectGUID

Nils Gladitz nilsgladitz at gmail.com
Tue Dec 8 06:28:21 EST 2015


On 12/08/2015 12:06 PM, Dr. Sören Textor wrote:
> Taking a look at the CMakeCache.txt offers the missing
>      ${target_name}_GUID_CMAKE
> variable.
> Thus
>    set_property(CACHE ${target_name}_GUID_CMAKE PROPERTY VALUE ${MY_GUID} )
> seems to work.
>
> But how do I get the actual GUID set by CMake? This one was stored in CMakeCache.txt before. But right know I cannot find the GUID from a generated project file in any ccmake chache file.
> How do I gain the GUID created by CMake. In my project I just store the new GUIDs created by CMake in a file. Next time I build the project file I'm looking if a GUID  was already generated for that project an will use that one.
>

See https://cmake.org/gitweb?p=cmake.git;a=commit;h=c85367f4
I don't think cmake exposes the GUID that it uses anymore but you should 
still be able to provide your own.

Nils
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151208/36b5e9af/attachment.html>


More information about the CMake mailing list