mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
LINK_OPTIONS: Add new family of properties
This family enable to manage link flags Three new properties: * directory property: LINK_OPTIONS * target properties: LINK_OPTIONS and INTERFACE_LINK_OPTIONS Two new commands * add_link_options(): to populate directory property * target_link_options(): to populate target properties Fixes: #16543
This commit is contained in:
20
Source/cmAddLinkOptionsCommand.cxx
Normal file
20
Source/cmAddLinkOptionsCommand.cxx
Normal file
@@ -0,0 +1,20 @@
|
||||
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||
#include "cmAddLinkOptionsCommand.h"
|
||||
|
||||
#include "cmMakefile.h"
|
||||
|
||||
class cmExecutionStatus;
|
||||
|
||||
bool cmAddLinkOptionsCommand::InitialPass(std::vector<std::string> const& args,
|
||||
cmExecutionStatus&)
|
||||
{
|
||||
if (args.empty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
for (std::string const& i : args) {
|
||||
this->Makefile->AddLinkOption(i);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user