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
[email protected]
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake