Re: [CMake] Where to change default link line on Cmake

2010-05-06 Thread Rene Salmon
True. Thanks! Rene On 5/6/10 7:09 AM, Marcel Loose lo...@astron.nl wrote: Hi Rene, -- 8 8 8 8 8 8 8 -- On the other hand we always want to use or default to XLC or XLF on an IBM Power machine and not gcc or gfrotran so I can see our users seeing having

Re: [CMake] Where to change default link line on Cmake

2010-05-05 Thread Rene Salmon
Hi, CMake was not really designed to do that. The idea of a cross platform build system is that it should not force a compiler choice from the build files. CMake has an order of picking compilers, if there is more than one on the system, it is going to pick the wrong one some of the

Re: [CMake] Where to change default link line on Cmake

2010-05-05 Thread Rene Salmon
No, no way to hint, they can specify that on the command line. cmake -DCMAKE_CXX_COMPILER=CC The environment vars do not be around during the build, only the first time that you run cmake. So, you can do this: CXX=CC cmake ../source Ok Thanks. Rene

Re: [CMake] Where to change default link line on Cmake

2010-05-04 Thread Rene Salmon
Hi, Thanks for the reply. What version of CMake? hpci6001t(salmr0)42:cmake --version cmake version 2.8.1 Is this xlc on Linux? Yes. It is xlc on Linux. Did you try to switch the compiler after creating the build tree? I am very new to cmake so I am not sure but I want to say the

Re: [CMake] Where to change default link line on Cmake

2010-05-04 Thread Rene Salmon
Prior to 2.8.1 CMake had a bug that led to use of -rdynamic with xlc on Linux. Are you sure that the ccmake that you're running is 2.8.1? Yes. hpci6001t(salmr0)133:ccmake -version ccmake version 2.8.1 I am doing and out of source build. Something like this. hpci6001t(salmr0)54:mkdir

Re: [CMake] Where to change default link line on Cmake

2010-05-04 Thread Rene Salmon
Set environment variables to choose your compiler: $ rm -rf build $ mkdir build $ cd build $ export CC=xlc CXX=xlC FC=xlf $ cmake .. OK. That works. Thanks. But I guess that brings up another question. I have this in my CMakeLists.txt file so that (I thought) would not have to

[CMake] Where to change default link line on Cmake

2010-05-02 Thread Rene Salmon
Hi, I tried searching the list archives but did not find and answer to my problem. I am fairly new to Cmake so maybe I just don't know exactly what to look for. I installed Cmake on an IBM power machine that only had the gcc compilers. I am guessing that is where and how cmake is determining