On Sep 8, 2008, at 5:50 PM, Alexander Neundorf wrote:

On Monday 08 September 2008, Robert Kubrick wrote:
I see. So you mean removing the cache files everytime I change the
CXX variable?
That works as far as I only use mpicxx, but if I want to run a
profiled version of my program I should be able to set a variable to
switch to mpicxx -mpe=mpianim without regenerating the Makefiles.

This is not possible. One build tree is fixed to one compiler (otherwise e.g.
all the try-compile tests can be wrong).

I see. Even 'make -e' is disabled somehow by cmake, so there is no chance to change compilation options at runtime.

If you need different compilers, I'd suggest to create separate build trees
for each one of them.

Actually different compiler options, but I guess it's the same idea?


Alex

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to