From: Larry Evans (cppljevans_at_[hidden])
Date: 2007-10-12 19:26:55
On 10/12/07 15:33, Larry Evans wrote:
> > 2. You want to pass flags to the compiler like -E, but cmake does not
> > allow this.
> I didn't mean this. The mention of using -E was only meant to show I
> used it to debug c++ macros, and that a similar feature would be
> useful w.r.t. cmake macros. Sorry I wasn't clear. However, I tested
> this, and indeed you're right. I tried:
> cmake -DCMAKE_CXX_COMPILER=/home/evansl/download/gcc/\
> and the resulting CMakeCache.txt didn't have the -std or the -I flags:
> //CXX compiler.
> This is needed in order to test the variadic compiler. The -std flag
> signals variadic templates and the -I is to include my variadic boost
> directory ahead of the normal boost directory. So, unless there's a
> workaround, I think this is a definite negative on cmake's side of the
> comparison with BB.
There is a workaround. Running the attached bash shell file with no
CMakeCache.txt file present, results in a new CMakeCache.txt with:
//First argument to CXX compiler
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk