diff options
author | Albert Ziegenhagel <albert.ziegenhagel@scai.fraunhofer.de> | 2017-08-21 12:39:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-08-25 18:24:24 (GMT) |
commit | f362052b81179357c5f675138426acf18e8550b7 (patch) | |
tree | 298835176b2a9a66a6c3289eea5eb979a076237f /Modules | |
parent | ebe436eb97bf81704a1d0b074b3da4ac817f37d3 (diff) | |
download | CMake-f362052b81179357c5f675138426acf18e8550b7.zip CMake-f362052b81179357c5f675138426acf18e8550b7.tar.gz CMake-f362052b81179357c5f675138426acf18e8550b7.tar.bz2 |
GNUToMS: Tolerate existence of a %USERPROFILE%/source directory
The VS environment script we load changes the working directory to
`%USERPROFILE%/source` if it exists. Set `VSCMD_START_DIR` to tell
the script to retain the current working directory.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/GNUtoMS_lib.bat.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/GNUtoMS_lib.bat.in b/Modules/Platform/GNUtoMS_lib.bat.in index d70aea5..62776f4 100644 --- a/Modules/Platform/GNUtoMS_lib.bat.in +++ b/Modules/Platform/GNUtoMS_lib.bat.in @@ -1,3 +1,4 @@ @echo off +set VSCMD_START_DIR=. call "@CMAKE_GNUtoMS_BAT@" lib /machine:"@CMAKE_GNUtoMS_ARCH@" %* |