ENH: Tolerate repeated link library types

The "debug", "optimized", and "general" link library type specifier
arguments to the target_link_library commands are sometimes repeated in
user code due to variable expansion and other complications.  Instead of
silently accepting the duplicates and trying to link to a bogus library
like "optimized.lib", warn and ignore the earlier specifiers.
This commit is contained in:
Brad King
2008-08-07 17:51:29 -04:00
parent 2bbb1713de
commit 40fc9174e2
2 changed files with 62 additions and 26 deletions
+2
View File
@@ -79,6 +79,8 @@ public:
cmTypeMacro(cmTargetLinkLibrariesCommand, cmCommand);
private:
void LinkLibraryTypeSpecifierWarning(int left, int right);
static const char* LinkLibraryTypeNames[3];
};