Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
AddLinkLib to Target in Wizard - prepending policy
huycan:
I am creating a wizard... and I have a question. The command AddLinkLib add a lib to target with an appending policy. What's the command for prepending instead?
oBFusCATed:
Check the docs here: http://wiki.codeblocks.org/index.php/Scripting_commands#CompileOptionsBase
I suppose you can use GetLinkLibs and then use SetLinkLibs. Or build an array of libs and then set it at the end. It is up to you.
huycan:
What I want to do is this:
At the Project level... I just AddLinkLib.. as usual...
Then at the Target level... AddLinkLib action is default to orAppendToParentOptions... so the question how can I change it to --> orPrependToParentOptions...
oBFusCATed:
For this you use CompileTargetBase::GetOptionRelation and CompileTargetBase::SetOptionRelation, I think.
huycan:
Perfect! Thanks. That did it. I use
--- Code: --- target.SetOptionRelation(ortLinkerOptions, 2);
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version