[CMake] another problem with ENV vars and windows paths

David Cole david.cole at kitware.com
Wed Mar 22 09:56:58 EST 2006


Perhaps it could be implemented as a STRING(CONFIGURE ...) option... 
similar to @ONLY and ESCAPE_QUOTES?

STRING(CONFIGURE ENV{PATH} RESULTVAR [TO_CMAKE_PATH_LIST | 
TO_SYSTEM_PATH_LIST])


William A. Hoffman wrote:

>At 02:48 PM 3/21/2006, Alexander Neundorf wrote:
>  
>
>>Hi, 
>>
>>recently cmake cvs has the new FILE() command: 
>>
>>FILE(SYSTEM_PATH ENVIRONMENT_VARIABLE _variable) 
>>
>>    
>>
>
>
>How about this:
>
>FILE(SYSTEM_PATH ENV{PATH} RESULTVAR)
>FILE(SYSTEM_PATH CMAKE_VAR RESULTVAR)
>
>The variable would be treated as a cmake variable if it did not
>have ENV{} around it.  That way you could use this for both the
>output of a command, or to get an environment variable.
>
>
>
>-Bill
>
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake
>
>  
>


More information about the CMake mailing list