summaryrefslogtreecommitdiffstats
path: root/Source/cmTargetLinkLibrariesCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-08-07 21:51:29 (GMT)
committerBrad King <brad.king@kitware.com>2008-08-07 21:51:29 (GMT)
commit40fc9174e21b8671dcac6545d0af1e5c6df55ee6 (patch)
tree6178a91790d5cc29b8d98f26dab09c99eab5cbc5 /Source/cmTargetLinkLibrariesCommand.h
parent2bbb1713de597ee6706c798357a79b3a85dc5f7f (diff)
downloadCMake-40fc9174e21b8671dcac6545d0af1e5c6df55ee6.zip
CMake-40fc9174e21b8671dcac6545d0af1e5c6df55ee6.tar.gz
CMake-40fc9174e21b8671dcac6545d0af1e5c6df55ee6.tar.bz2
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.
Diffstat (limited to 'Source/cmTargetLinkLibrariesCommand.h')
-rw-r--r--Source/cmTargetLinkLibrariesCommand.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmTargetLinkLibrariesCommand.h b/Source/cmTargetLinkLibrariesCommand.h
index de20533..ccf86ad 100644
--- a/Source/cmTargetLinkLibrariesCommand.h
+++ b/Source/cmTargetLinkLibrariesCommand.h
@@ -79,6 +79,8 @@ public:
cmTypeMacro(cmTargetLinkLibrariesCommand, cmCommand);
private:
+ void LinkLibraryTypeSpecifierWarning(int left, int right);
+ static const char* LinkLibraryTypeNames[3];
};