summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-21 20:04:06 (GMT)
committerBrad King <brad.king@kitware.com>2007-12-21 20:04:06 (GMT)
commit3cf3bb664aa9b6c447c90c33cd6b5c1dff8c1a10 (patch)
treea392ebf61b0938354d5a73979a452102ff5eef7c /Source/cmGlobalVisualStudioGenerator.h
parentd2be142e3bd2b1347a5bce0c75740b3b2e7acd94 (diff)
downloadCMake-3cf3bb664aa9b6c447c90c33cd6b5c1dff8c1a10.zip
CMake-3cf3bb664aa9b6c447c90c33cd6b5c1dff8c1a10.tar.gz
CMake-3cf3bb664aa9b6c447c90c33cd6b5c1dff8c1a10.tar.bz2
ENH: Make static library targets depend on targets to which they "link" for the purpose of build ordering. This makes the build order consistent for static and shared library builds. It is also useful when custom command inputs of one library are generated as custom commands outputs of another. It may be useful in the future for Fortran module dependencies. Implemented for Makefiles, Xcode, and VS 8 and above. Added sample code to do it for VS 7.1 and below, but left it disabled with comments explaining why. Likely it will never be needed on VS 7.1 or below anyway.
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.h')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.h b/Source/cmGlobalVisualStudioGenerator.h
index 4237b97..2fbb478 100644
--- a/Source/cmGlobalVisualStudioGenerator.h
+++ b/Source/cmGlobalVisualStudioGenerator.h
@@ -60,9 +60,14 @@ public:
protected:
virtual void CreateGUID(const char*) {}
- virtual void FixUtilityDepends();
+ void FixUtilityDepends();
const char* GetUtilityForTarget(cmTarget& target, const char*);
+ // Does this VS version link targets to each other if there are
+ // dependencies in the SLN file? This was done for VS versions
+ // below 8.
+ virtual bool VSLinksDependencies() const { return true; }
+
private:
void FixUtilityDependsForTarget(cmTarget& target);
void CreateUtilityDependTarget(cmTarget& target);