From 14e4e678b9eb480c1a8ef14347d6408887a25da1 Mon Sep 17 00:00:00 2001 From: John Szakmeister Date: Mon, 21 Apr 2014 08:28:38 -0400 Subject: Allow USERNAME to be specified on the command line. There are some systems that have usernames of the form DOMAIN\username, which causes an invalid escape character to be inserted. I was going to add some escaping, but decided it would be best to just outright set the value, since I don't want the DOMAIN portion in there anyways. --- config/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt index b233418bda..b94c3f9f07 100644 --- a/config/CMakeLists.txt +++ b/config/CMakeLists.txt @@ -17,7 +17,7 @@ configure_file ( find_program(WHOAMI_PROG whoami) find_program(HOSTNAME_PROG hostname) -if (EXISTS ${WHOAMI_PROG}) +if (NOT DEFINED USERNAME AND EXISTS ${WHOAMI_PROG}) execute_process(COMMAND ${WHOAMI_PROG} OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE USERNAME) -- cgit