diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-17 20:08:29 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-17 20:08:29 -0800 |
| commit | ac2ec94129ae0bdbcb16c0c2333fbfc52844d6c6 (patch) | |
| tree | 75c2ea10139fe56248c2d822effd904a9ff42c4f /toolsrc/src/vcpkg_info.cpp | |
| parent | 7ae6c2152686467ab81663e6d7d259f475c0229d (diff) | |
| download | vcpkg-ac2ec94129ae0bdbcb16c0c2333fbfc52844d6c6.tar.gz vcpkg-ac2ec94129ae0bdbcb16c0c2333fbfc52844d6c6.zip | |
Change Info::version() to Version::version()
Diffstat (limited to 'toolsrc/src/vcpkg_info.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg_info.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/toolsrc/src/vcpkg_info.cpp b/toolsrc/src/vcpkg_info.cpp index f8e214998..fa2077177 100644 --- a/toolsrc/src/vcpkg_info.cpp +++ b/toolsrc/src/vcpkg_info.cpp @@ -1,32 +1,8 @@ #include "pch.h" #include "vcpkg_info.h" -#include "metrics.h" - -#define STRINGIFY(X) #X -#define MACRO_TO_STRING(X) STRINGIFY(X) - -#define VCPKG_VERSION_AS_STRING MACRO_TO_STRING(VCPKG_VERSION)"" // Double quotes needed at the end to prevent blank token namespace vcpkg::Info { - const std::string& version() - { - static const std::string s_version = -#include "../VERSION.txt" - - -#pragma warning( push ) -#pragma warning( disable : 4003) - // VCPKG_VERSION can be defined but have no value, which yields C4003. - + std::string(VCPKG_VERSION_AS_STRING) -#pragma warning( pop ) -#ifndef NDEBUG - + std::string("-debug") -#endif - + std::string(GetCompiledMetricsEnabled() ? "" : "-external"); - return s_version; - } - const std::string& email() { static const std::string s_email = R"(vcpkg@microsoft.com)"; |
