Alpine3D

Alpine3D Svn Source Tree

Root/trunk/tools/cmake/CorrectWindowsPaths.cmake

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
7macro (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)
13endmacro (CONVERT_CYGWIN_PATH)
14

Archive Download this file

Revision: HEAD