source: tol/tolbase/cmake/modules/MSysMacros.cmake

devel
Last change on this file was 4fce39e, checked in by Jorge Pérez <josp.jorge@…>, 12 years ago

refs #1818, #1812, compilación del ejecutable de tolbase basado en CMake

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6510 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 344 bytes
RevLine 
[4fce39e]1if( MSYS )
2  get_filename_component( msys_usr $ENV{WD} DIRECTORY )
3  set( MSYS_USR_PATH ${msys_usr} CACHE INTERNAL "" )
4endif( MSYS )
5
6macro( msys_convert_path var path )
7  if( MSYS )
8    string( REGEX REPLACE ^/usr ${MSYS_USR_PATH} ${var} ${path} )
9  else( MSYS )
10    set( ${var} ${path} PARENT_SCOPE )
11  endif( MSYS )
12endmacro( )
Note: See TracBrowser for help on using the repository browser.