summaryrefslogtreecommitdiff
path: root/Source/cmLocalVisualStudio10Generator.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/cmLocalVisualStudio10Generator.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/cmLocalVisualStudio10Generator.h')
-rw-r--r--Source/cmLocalVisualStudio10Generator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio10Generator.h b/Source/cmLocalVisualStudio10Generator.h
index 2330432ea8..0fccdb0715 100644
--- a/Source/cmLocalVisualStudio10Generator.h
+++ b/Source/cmLocalVisualStudio10Generator.h
@@ -39,6 +39,7 @@ public:
protected:
virtual const char* ReportErrorLabel() const;
+ virtual bool CustomCommandUseLocal() const { return true; }
private:
};