diff options
author | Brad King <brad.king@kitware.com> | 2011-04-11 10:07:40 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-04-11 11:53:31 -0400 |
commit | b98fdd52848b45f97f8a38eaa7749186f6c8fab3 (patch) | |
tree | 37dbb31f8d0b8c842541aaa737f169c030c14b87 /Source/cmLocalVisualStudioGenerator.h | |
parent | 06fcbc4757c7a52733a554d4050735452d49a5e7 (diff) | |
download | cmake-b98fdd52848b45f97f8a38eaa7749186f6c8fab3.tar.gz |
VS: Use setlocal/endlocal only in VS 10 custom commands
The setlocal/endlocal and errorlevel pattern added by commit 06fcbc47
(VS10: Fix working directory of consecutive custom commands, 2011-04-08)
does not work well in VS 7.1. Restore the original behavior for VS
versions that do not need the new behavior.
Diffstat (limited to 'Source/cmLocalVisualStudioGenerator.h')
-rw-r--r-- | Source/cmLocalVisualStudioGenerator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.h b/Source/cmLocalVisualStudioGenerator.h index 278291e90a..a38bc30bfe 100644 --- a/Source/cmLocalVisualStudioGenerator.h +++ b/Source/cmLocalVisualStudioGenerator.h @@ -43,6 +43,7 @@ public: protected: virtual const char* ReportErrorLabel() const; + virtual bool CustomCommandUseLocal() const { return false; } /** Construct a custom command to make exe import lib dir. */ cmsys::auto_ptr<cmCustomCommand> |