summaryrefslogtreecommitdiff
path: root/Source/cmTargetLinkOptionsCommand.h
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-09-10 21:41:44 +0200
committerBrad King <brad.king@kitware.com>2019-09-26 13:27:55 -0400
commit9d1a1bc495be41b035f61f9b707df8006da54160 (patch)
treea1b41bb5a94b7ca5c8fdae2a1258581c59a62eb6 /Source/cmTargetLinkOptionsCommand.h
parentdcc117b9446cfc3d6c8bf191545aac8d1519abca (diff)
downloadcmake-9d1a1bc495be41b035f61f9b707df8006da54160.tar.gz
cmTarget*: Port away from cmCommand
Diffstat (limited to 'Source/cmTargetLinkOptionsCommand.h')
-rw-r--r--Source/cmTargetLinkOptionsCommand.h34
1 files changed, 2 insertions, 32 deletions
diff --git a/Source/cmTargetLinkOptionsCommand.h b/Source/cmTargetLinkOptionsCommand.h
index 918a8d7a8a..13fb40cb69 100644
--- a/Source/cmTargetLinkOptionsCommand.h
+++ b/Source/cmTargetLinkOptionsCommand.h
@@ -8,39 +8,9 @@
#include <string>
#include <vector>
-#include <cm/memory>
-
-#include "cmCommand.h"
-#include "cmTargetPropCommandBase.h"
-
class cmExecutionStatus;
-class cmTarget;
-
-class cmTargetLinkOptionsCommand : public cmTargetPropCommandBase
-{
-public:
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmTargetLinkOptionsCommand>();
- }
-
- /**
- * This is called when the command is first encountered in
- * the CMakeLists.txt file.
- */
- bool InitialPass(std::vector<std::string> const& args,
- cmExecutionStatus& status) override;
-
-private:
- void HandleMissingTarget(const std::string& name) override;
- bool HandleDirectContent(cmTarget* tgt,
- const std::vector<std::string>& content,
- bool prepend, bool system) override;
- std::string Join(const std::vector<std::string>& content) override;
-};
+bool cmTargetLinkOptionsCommand(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
#endif