From b98fdd52848b45f97f8a38eaa7749186f6c8fab3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 11 Apr 2011 10:07:40 -0400 Subject: 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. --- Source/cmLocalVisualStudio10Generator.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/cmLocalVisualStudio10Generator.h') 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: }; -- cgit v1.2.1