summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetLinkLibrariesCommand.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-07 20:09:19 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-08-07 20:09:19 (GMT)
commit6c65c77d350cab78832b6a2e20fec655a4e39969 (patch)
tree7721b4cafea9e14c7462d2c43ed47e071f7e9a6b /Source/cmTargetLinkLibrariesCommand.h
parent7e54a53a3da92ea2d16e2396bf7cfc801c3d076d (diff)
downloadCMake-6c65c77d350cab78832b6a2e20fec655a4e39969.zip
CMake-6c65c77d350cab78832b6a2e20fec655a4e39969.tar.gz
CMake-6c65c77d350cab78832b6a2e20fec655a4e39969.tar.bz2
ENH: Report an error when ADD_LIBRARY and TARGET_LINK_LIBRARIES are in the wrong order and fix CMakeLists files to actually work
Diffstat (limited to 'Source/cmTargetLinkLibrariesCommand.h')
-rw-r--r--Source/cmTargetLinkLibrariesCommand.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.h b/Source/cmTargetLinkLibrariesCommand.h
index 696fd1a..e189ef5 100644
--- a/Source/cmTargetLinkLibrariesCommand.h
+++ b/Source/cmTargetLinkLibrariesCommand.h
@@ -45,6 +45,11 @@ public:
virtual bool InitialPass(std::vector<std::string> const& args);
/**
+ * Verify that the ordering in CMake is correct.
+ */
+ virtual void FinalPass();
+
+ /**
* The name of the command as specified in CMakeList.txt.
*/
virtual const char* GetName() { return "TARGET_LINK_LIBRARIES";}
@@ -74,6 +79,9 @@ public:
}
cmTypeMacro(cmTargetLinkLibrariesCommand, cmCommand);
+private:
+ std::vector<std::string> m_HasLocation;
+ std::string m_TargetName;
};