Repository: mesos
Updated Branches:
  refs/heads/master 6d7b25adc -> 66cff9f47


CMake: Fixed build when '$USER' is not in the environment.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/66cff9f4
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/66cff9f4
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/66cff9f4

Branch: refs/heads/master
Commit: 66cff9f4706859763a8bd4b099c403a13e231a75
Parents: 6d7b25a
Author: Joseph Wu <[email protected]>
Authored: Wed Mar 1 16:46:40 2017 -0800
Committer: Joseph Wu <[email protected]>
Committed: Wed Mar 1 16:46:50 2017 -0800

----------------------------------------------------------------------
 src/common/build.cpp | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/66cff9f4/src/common/build.cpp
----------------------------------------------------------------------
diff --git a/src/common/build.cpp b/src/common/build.cpp
index 971a8c9..a87d2cf 100644
--- a/src/common/build.cpp
+++ b/src/common/build.cpp
@@ -38,7 +38,13 @@ namespace build {
 
 const std::string DATE = BUILD_DATE;
 const double TIME = atof(BUILD_TIME);
+
+#ifdef BUILD_USER
 const std::string USER = BUILD_USER;
+#else
+const std::string USER = "";
+#endif
+
 const std::string FLAGS = BUILD_FLAGS;
 const std::string JAVA_JVM_LIBRARY = BUILD_JAVA_JVM_LIBRARY;
 

Reply via email to