Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-09

TLazProject.LazCompilerOptions custom options

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

patspiper

Hi,

How can we access TLazProject.LazCompilerOptions custom options in an IDE add-on package that creates a project type such as the HTTP server web app? I need to add to the custom options -dUseCThreads.

TLazProject.LazCompilerOptions.SetCustomOptions is abstract.

Stephano

Reply by email

Juha Manninen
to patspiper
patspiper wrote
TLazProject.LazCompilerOptions.SetCustomOptions is abstract.

Use the property TLazProject.LazCompilerOptions.CustomOptions. SetCustomOptions is a protected accessor method, not meant for calling directly.

Juha

Reply by email

patspiper
to Juha Manninen
Juha Manninen wrote
On Thu, Sep 26, 2013 at 10:18 PM, patspiper wrote: > TLazProject.LazCompilerOptions.SetCustomOptions is abstract. Use the property TLazProject.LazCompilerOptions.CustomOptions. SetCustomOptions is a protected accessor method, not meant for calling directly.

You're right!

What threw me off track is the CustomOption's setter being abstract.

Stephano

Reply by email