summaryrefslogtreecommitdiffstats
path: root/Source/CPack
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2019-07-04 20:05:24 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2019-07-09 22:07:18 (GMT)
commitaf75ab7645545bc046d18c8af48f3198a9de4080 (patch)
tree9e9c09b3e631f5027e8883b4126890c1c414395b /Source/CPack
parent0db458a0ce7d5dce245d7489c852c3ba2367aa5d (diff)
downloadCMake-af75ab7645545bc046d18c8af48f3198a9de4080.zip
CMake-af75ab7645545bc046d18c8af48f3198a9de4080.tar.gz
CMake-af75ab7645545bc046d18c8af48f3198a9de4080.tar.bz2
Refactor: Use anonymous namespace instead of `static`s in `cpack.cxx`
Signed-off-by: Alex Turbov <i.zaufi@gmail.com>
Diffstat (limited to 'Source/CPack')
-rw-r--r--Source/CPack/cpack.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index 58b9e70..3edcbaf 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -29,19 +29,20 @@
#include "cmSystemTools.h"
#include "cmake.h"
-static const char* cmDocumentationName[][2] = {
+namespace {
+const char* cmDocumentationName[][2] = {
{ nullptr, " cpack - Packaging driver provided by CMake." },
{ nullptr, nullptr }
};
-static const char* cmDocumentationUsage[][2] = {
+const char* cmDocumentationUsage[][2] = {
// clang-format off
{ nullptr, " cpack [options]" },
{ nullptr, nullptr }
// clang-format on
};
-static const char* cmDocumentationOptions[][2] = {
+const char* cmDocumentationOptions[][2] = {
{ "-G <generators>", "Override/define CPACK_GENERATOR" },
{ "-C <Configuration>", "Specify the project configuration" },
{ "-D <var>=<value>", "Set a CPack variable." },
@@ -90,10 +91,11 @@ int cpackDefinitionArgument(const char* argument, const char* cValue,
return 1;
}
-static void cpackProgressCallback(const std::string& message, float /*unused*/)
+void cpackProgressCallback(const std::string& message, float /*unused*/)
{
std::cout << "-- " << message << std::endl;
}
+} // namespace
// this is CPack.
int main(int argc, char const* const* argv)