Debian Codegraph @

cmake/modules/CorrectWindowsPaths.cmake

raw
1 # CorrectWindowsPaths - this module defines one macro
2 #
3 # CONVERT_CYGWIN_PATH( PATH )
4 # This uses the command cygpath (provided by cygwin) to convert
5 # unix-style paths into paths useable by cmake on windows
6
7 macro (CONVERT_CYGWIN_PATH _path)
8 if (WIN32)
9 EXECUTE_PROCESS(COMMAND cygpath.exe -m ${${_path}}
10 OUTPUT_VARIABLE ${_path})
11 string (STRIP ${${_path}} ${_path})
12 endif (WIN32)
13 endmacro (CONVERT_CYGWIN_PATH)
14