diff options
author | Brad King <brad.king@kitware.com> | 2015-06-02 15:49:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-04 12:40:08 (GMT) |
commit | c85367f408befa419185a4fec4816ea0ee3e1ee6 (patch) | |
tree | 38bf982028775eba045b4cabfab5466d49befae4 /Source/cmGlobalVisualStudio7Generator.h | |
parent | d3bb5da9294ddbfcc5fddf7ba3dafd2c3e0b32b2 (diff) | |
download | CMake-c85367f408befa419185a4fec4816ea0ee3e1ee6.zip CMake-c85367f408befa419185a4fec4816ea0ee3e1ee6.tar.gz CMake-c85367f408befa419185a4fec4816ea0ee3e1ee6.tar.bz2 |
VS: Compute project GUIDs deterministically
Compute deterministic GUIDs that are unique to the build tree by
hashing the path to the build tree with the GUID logical name.
Avoid storing them in the cache, but honor any found there.
This will allow project GUIDs to be reproduced in a fresh build
tree so long as its path is the same as the original, which may
be useful for incremental builds.
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.h')
-rw-r--r-- | Source/cmGlobalVisualStudio7Generator.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.h b/Source/cmGlobalVisualStudio7Generator.h index c98d269..931ac9c 100644 --- a/Source/cmGlobalVisualStudio7Generator.h +++ b/Source/cmGlobalVisualStudio7Generator.h @@ -80,9 +80,8 @@ public: */ virtual void OutputSLNFile(); - ///! Create a GUID or get an existing one. - void CreateGUID(const std::string& name); - std::string GetGUID(const std::string& name); + ///! Lookup a stored GUID or compute one deterministically. + std::string GetGUID(std::string const& name); /** Append the subdirectory for the given configuration. */ virtual void AppendDirectoryForConfig(const std::string& prefix, |