Text archives Help
- From: Andrew Kensler <aek@cs.utah.edu>
- To: Abe Stephens <abe@sci.utah.edu>
- Cc: Shreekanth Pavar <shreekanth.pavar@ucl.ac.uk>, MANTA <manta@sci.utah.edu>
- Subject: Re: [MANTA] Compiling Manta with mpiCC (i.e to be able to use MPI)
- Date: Thu, 17 May 2007 17:37:44 -0600 (MDT)
I've often encountered this sort of behaviour with CMake picking
/usr/bin/c++ when I wanted it to use /usr/bin/g++. I usually just run
ccmake the first time with the -DCMAKE_CXX_COMPILER=/usr/bin/g++ and then
it does the right thing. A similiar approach should work here too. (Or
you could set the environment variable -- I find the flag easier to
remember.)
- Andrew
On Thu, 17 May 2007, Abe Stephens wrote:
>
>
I haven't encountered cmake-i, I use the libncurses based ccmake. After the
>
cmake cache is created the values will be read from cache instead of from
>
the
>
environment variables. Try creating a new build directory, setenv the
>
compiler
>
variables and rerun ccmake.
>
>
Abe
>
>
Shreekanth Pavar wrote:
>
> Quoting James Bigler <bigler@sci.utah.edu>:
>
>
>
> > Could you tell us what the errors are?
>
> >
>
> > We need to determine if this is a Manta CMake thing or just a CMake
>
> > thing. If it is a CMake thing, then you should ask this question to
>
> > the CMake mailing list cmake@cmake.org.
>
> >
>
>
>
> It could be a CMake thing but I'm unsure. I'm using cmake-i to set the
>
> build
>
> option. Even though I've already set CXX=mpiCC and CC=mpicc it still
>
> lists the
>
> default values (see below). It also refuses to accept my manual override
>
> at the
>
> command prompt and continually re-prompts for a value:
>
>
>
> Variable Name: CMAKE_CXX_COMPILER
>
> Description: CXX compiler.
>
> Current Value: /usr/bin/c++
>
> New Value (Enter to keep current value):
>
>
>
> Variable Name: CMAKE_C_COMPILER
>
> Description: C compiler.
>
> Current Value: /usr/bin/gcc
>
> New Value (Enter to keep current value):
>
>
>
>
Archive powered by MHonArc 2.6.16.