Text archives Help
- From: James Bigler <bigler@sci.utah.edu>
- Cc: manta@sci.utah.edu
- Subject: Re: [MANTA] icpc on arachne
- Date: Wed, 31 May 2006 13:58:35 -0600
This is what the book says:
There are three ways to specify which compiler CMake should use; the
generator can specify the compiler, an environment variable can be set,
or a cache entry can be set. Some generators are tied to a specific
compiler, for example the Visual Studio 6 generator uses Microsoft
Visual Studio 6 compiler. For makefile based generators CMake will try
a list of usual compilers until it finds a working compiler. The list
can be found in the files:
Modules/CMakeDeterminCCompiler.cmake and
Modules/CMakeDetermineCXXCompiler.cmake
The lists can be preempted with environment variables that can be set
before CMake is run. The CC environment variable determines the C
compiler while CXX determines the C++ compiler. If those are not set,
CMake will try the following list of compilers:
c++ g++ CC aCC cl bcc xlC
Once CMake has been run and picked a compiler, you can always change the
selection by changing the cache entries CMAKE_CXX_COMPILER and
CMAKE_C_COMPILER. The flags for the compiler and the linker can also be
changed by environment variables. LDFLAGS if set will initialize the
cache values for link flags, and CXXFLAGS and CFLAGS will initialize
CMAKE_CXX_FLAGS and CMAKE_C_FLAGS.
James
Christiaan Paul Gribble wrote:
But if they're unset, how can they be affecting what CMake uses? It
seems strange that I'd have to set environment variables just to get
CMake to use the compilers that I want...
C
On May 31, 2006, at 1:42 PM, James Bigler wrote:
setenv CXX icpc
setenv CC icc
James
Christiaan Paul Gribble wrote:
Hi,
I'm trying to build Manta with icpc on arachne. I've setup CMake
properly (as far as I can tell), but it always uses c++ (which is a
link to g++) in /usr/bin, no matter how I specify the intel compiler.
Has anyone run into this problem before or know how to correct it?
C
Archive powered by MHonArc 2.6.16.