[Lazarus] Conditional define for a whole project

Fr0sT fr0st.brutal at gmail.com
Thu Aug 4 14:59:21 CEST 2011


I wonder how to set a conditional define for a project. All I want is to have
'FOO' defined so that I could use {$ifdef FOO}. I've read
http://wiki.lazarus.freepascal.org/Macros_and_Conditionals but seems this is
not what I need. Anyway I tried setting "foo=bar" in the build modes and
creating build macro with "foo:=bar" - both in vain. ShowMessage({$I %foo%})
won't work and {$if foo=bar} too.

--
View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Conditional-define-for-a-whole-project-tp3225300p3225300.html
Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.




More information about the Lazarus mailing list