[CMake] How to get current user?

Nils Gladitz gladitz at sci-vis.de
Mon Oct 8 12:40:21 EDT 2012


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
>
> 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
Web: www.scivis.de

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121008/6f990223/attachment.htm>


More information about the CMake mailing list