[CMake] How to get current user?

Eric Clark eclark at ara.com
Mon Oct 8 12:42:20 EDT 2012


Thank you Nils! I actually just figured out that I would have to use the environment variables and they work just fine... I was just wondering if CMake had a variable for it or not...

Eric

From: Nils Gladitz [mailto:gladitz at sci-vis.de]
Sent: Monday, October 08, 2012 11:40 AM
To: Eric Clark
Cc: CMake Mailing List (cmake at cmake.org)
Subject: Re: [CMake] How to get current user?

I'd try $ENV{USERNAME} on windows and otherwise $ENV{USER}.

Nils

On 10/08/2012 06:10 PM, Eric Clark wrote:
Hello All,

Can anyone tell me if there is a variable or command that will return me the name of the current user?

Thank You,
Eric Clark - Code Magician
850.678.5222
eclark at ara.com<mailto:eclark at ara.com>

To be fond of something is better than merely to know it, and to find joy in it is better than merely to be fond of it. -- The Analects, Confucius





--



Powered by www.kitware.com<http://www.kitware.com>



Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html



Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ



Follow this link to subscribe/unsubscribe:

http://www.cmake.org/mailman/listinfo/cmake




--

Nils Gladitz, B.Sc.

DICOM, Konnektivität und Entwicklung



Scivis wissenschaftliche Bildverarbeitung GmbH

Bertha-von-Suttner-Str. 5

D-37085 Göttingen

GERMANY

Handelsregister Nr. / Trade Register No. B3100 Göttingen

Geschäftsführer / Managing Directors Dr. Gernot Ebel, Dr. Uwe Engeland



Tel: 0049 (0)551 634181-28

E-Mail: gladitz at scivis.de<mailto:gladitz at scivis.de>

Web: www.scivis.de<http://www.scivis.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121008/2f9ca3a6/attachment.htm>


More information about the CMake mailing list