This is my project structure:
MainFolder
- Jamroot.jam
- AnotherFolder
- libFolder
- Jamfile.jam
- cpp files
I have an #ifdef in one of the cpp files. Example:
#ifdef SOMEVALUE
Code
#endif
I need to compile the cpp files with #define in Jamfile. Since, I am having two types of executables (one with #define and one without) I need to do this in Jamfile itself and not cpp code.
I have tried the following, which does not work (unable to find definitions inside #ifdef #endif block):
lib libname : [ glob *.cpp ] : <link>static : <define>SOMEVALUE ;