aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/PostBuildLint_BuildPolicies.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-03 19:09:24 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-03 19:09:24 -0800
commitb03b578ffc27a9f0d4d9c7a8edc8edeea487dce3 (patch)
tree66cc3c484da4d6af5672b1913dfe341774f4e0b0 /toolsrc/src/PostBuildLint_BuildPolicies.cpp
parentd7fb7b7736cd7cd67cedab31772c60430fecb927 (diff)
downloadvcpkg-b03b578ffc27a9f0d4d9c7a8edc8edeea487dce3.tar.gz
vcpkg-b03b578ffc27a9f0d4d9c7a8edc8edeea487dce3.zip
Rename policy to OnlyReleaseCRT
Diffstat (limited to 'toolsrc/src/PostBuildLint_BuildPolicies.cpp')
-rw-r--r--toolsrc/src/PostBuildLint_BuildPolicies.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/toolsrc/src/PostBuildLint_BuildPolicies.cpp b/toolsrc/src/PostBuildLint_BuildPolicies.cpp
index 2e0a1713b..f070a2a42 100644
--- a/toolsrc/src/PostBuildLint_BuildPolicies.cpp
+++ b/toolsrc/src/PostBuildLint_BuildPolicies.cpp
@@ -8,7 +8,7 @@ namespace vcpkg::PostBuildLint::BuildPolicies
static const std::string NAME_EMPTY_PACKAGE = "PolicyEmptyPackage";
static const std::string NAME_DLLS_WITHOUT_LIBS = "PolicyDLLsWithoutLIBs";
- static const std::string NAME_NO_DEBUG_BINARIES = "PolicyNoDebugBinaries";
+ static const std::string NAME_ONLY_RELEASE_CRT = "PolicyOnlyReleaseCRT";
const std::string& type::toString() const
{
@@ -18,8 +18,8 @@ namespace vcpkg::PostBuildLint::BuildPolicies
return NAME_EMPTY_PACKAGE;
case DLLS_WITHOUT_LIBS:
return NAME_DLLS_WITHOUT_LIBS;
- case NO_DEBUG_BINARIES:
- return NAME_NO_DEBUG_BINARIES;
+ case ONLY_RELEASE_CRT:
+ return NAME_ONLY_RELEASE_CRT;
case NULLVALUE:
return NULLVALUE_STRING;
default:
@@ -31,7 +31,7 @@ namespace vcpkg::PostBuildLint::BuildPolicies
{
static const std::string CMAKE_VARIABLE_EMPTY_PACKAGE = "VCPKG_POLICY_EMPTY_PACKAGE";
static const std::string CMAKE_VARIABLE_DLLS_WITHOUT_LIBS = "VCPKG_POLICY_DLLS_WITHOUT_LIBS";
- static const std::string CMAKE_VARIABLE_NO_DEBUG_BINARIES = "VCPKG_POLICY_NO_DEBUG_BINARIES";
+ static const std::string CMAKE_VARIABLE_ONLY_RELEASE_CRT = "VCPKG_POLICY_ONLY_RELEASE_CRT";
switch (this->backing_enum)
{
@@ -39,8 +39,8 @@ namespace vcpkg::PostBuildLint::BuildPolicies
return CMAKE_VARIABLE_EMPTY_PACKAGE;
case DLLS_WITHOUT_LIBS:
return CMAKE_VARIABLE_DLLS_WITHOUT_LIBS;
- case NO_DEBUG_BINARIES:
- return CMAKE_VARIABLE_NO_DEBUG_BINARIES;
+ case ONLY_RELEASE_CRT:
+ return CMAKE_VARIABLE_ONLY_RELEASE_CRT;
case NULLVALUE:
Enums::nullvalue_used(ENUM_NAME);
default:
@@ -60,9 +60,9 @@ namespace vcpkg::PostBuildLint::BuildPolicies
return BuildPolicies::DLLS_WITHOUT_LIBS;
}
- if (s == NAME_NO_DEBUG_BINARIES)
+ if (s == NAME_ONLY_RELEASE_CRT)
{
- return BuildPolicies::NO_DEBUG_BINARIES;
+ return BuildPolicies::ONLY_RELEASE_CRT;
}
return BuildPolicies::NULLVALUE;