Global defines. lazarus / 11-Options ---------------------------------------------------------------------- taazz · 2013-03-02 07:18 Where should I put my global defines? I need to create 2 build modes 1 for debug and 1 for release actually I need 3 the last is for prerelease kind of release with debug info so I can debug any differences between optimizations. Any ideas? ---------------------------------------------------------------------- BigChimp · 2013-03-02 08:26 I'm sure you must know this answer, but... Define 3 build modes in Lazarus project options. For each mode in project options,other,custom options, define the relevant defines such as -dPRERELEASE -dWHATEVER -dSOMEMORE ... IIRC somebody also recently posted a method where you can use .inc files but you'd have to include these with all your source files. ---------------------------------------------------------------------- taazz · 2013-03-02 08:39 I have found the build modes screen and I was playing with it yes. I did know about the custom options part at all, thank you.