Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [MANTA] icpc on arachne


Chronological Thread 
  • From: Christiaan Paul Gribble <cgribble@sci.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: Re: [MANTA] icpc on arachne
  • Date: Wed, 31 May 2006 14:06:56 -0600

Well, if that's how it actually worked, that'd be great! :) I must be doing something wrong. The environment variables weren't set, and I hacked up the proper entries by hand, but to no avail. In any case, I've set the CXX and CC variable, reconfigured from a clean state, and things seem to be working now.

Thanks for the info,

C

On May 31, 2006, at 1:58 PM, James Bigler wrote:

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.

Top of page