Ah, that's right, Ken. It has been a while since I have done this, but you are right that setting CC and CXX is the way to do it.
On Mon, Jan 8, 2018 at 11:29 AM, Moreland, Kenneth <kmo...@sandia.gov> wrote: > Actually I find the easiest way to do it is, assuming you have icc in your > path, to set the CC and CXX environment variables on the command of the first > run of cmake (or ccmake or cmake-gui, whichever one you are using). So the > start of your build would be something like this: > > mkdir paraview-build > cd paraview-build > CC=icc CXX=icc cmake ../paraview > > That should ignore gcc. (Remember, you have to delete all of any build files > you have created so far and start over. Once CMake picks a compiler, you > cannot change it without starting over.) > > -Ken > > -----Original Message----- > From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of Cory > Quammen > Sent: Monday, January 8, 2018 7:23 AM > To: Yangguang Liao <ygl...@ucdavis.edu> > Cc: ParaView <paraview@paraview.org> > Subject: [EXTERNAL] Re: [Paraview] Question about build paraview > > It's kind of a quirk of CMake, but once CMAKE_CXX_COMPILER is set by the > initial CMake configuration, you can't change it. So what should you do? > > The solution is to set an environment variable named CMAKE_CXX_COMPILER in > your shell prior to running CMake for the first time. Set that variable to > the path of version of gcc or icc you want to use, and that should do it. You > may also need to set CMAKE_C_COMPILER as well. > > HTH, > Cory > > On Mon, Jan 8, 2018 at 12:17 AM, Yangguang Liao <ygl...@ucdavis.edu> wrote: >> Hi, >> >> Anyone has experience build paraview on TACC Maverick or other >> clusters before? I need to build my own paraview. I use superbuild to build >> paraview. >> but everytime it stop at the step of configure paraview due to GCC >> version is lower than 4.6. Maverick does have GCC 4.9 and 5.4 >> installed and also have intel icc and icpc installed. When I try to >> change CMAKE_CXX_COMPILER to high verion GCC it still detect GCC is >> lower than 4.6. Even when I try to use icc to compile it still detects >> GCC lower version error. No idea how to fix. I know I should probably >> ask Maverick system admin. Just wonder if anybody happen to know this issue. >> Thanks. >> >> -- >> Yangguang Liao >> PhD. student of Computer Science Department University of California, >> Davis >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the ParaView Wiki at: >> http://paraview.org/Wiki/ParaView >> >> Search the list archives at: http://markmail.org/search/?q=ParaView >> >> Follow this link to subscribe/unsubscribe: >> https://paraview.org/mailman/listinfo/paraview >> > > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > https://paraview.org/mailman/listinfo/paraview -- Cory Quammen Staff R&D Engineer Kitware, Inc. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: https://paraview.org/mailman/listinfo/paraview