summaryrefslogtreecommitdiff
path: root/Source/cmLocalVisualStudioGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-04-11 10:07:40 -0400
committerBrad King <brad.king@kitware.com>2011-04-11 11:53:31 -0400
commitb98fdd52848b45f97f8a38eaa7749186f6c8fab3 (patch)
tree37dbb31f8d0b8c842541aaa737f169c030c14b87 /Source/cmLocalVisualStudioGenerator.h
parent06fcbc4757c7a52733a554d4050735452d49a5e7 (diff)
downloadcmake-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.h1
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>