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