1 2 3 4 5
MACRO (MACRO_GETENV_WIN_PATH var name) set(${var} $ENV{${name}}) STRING(REGEX REPLACE "\\\\" "/" ${var} "${${var}}") ENDMACRO (MACRO_GETENV_WIN_PATH var name)