[CMake] Where to change default link line on Cmake
Rene Salmon
salmr0 at bp.com
Tue May 4 16:58:07 EDT 2010
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 answer is no.
I basically create a fresh out of source build tree I believe.
I am doing and out of source build. Something like this.
hpci6001t(salmr0)54:mkdir build
hpci6001t(salmr0)55:cd build/
hpci6001t(salmr0)56:ccmake ../CMakeLists.txt
After using the cmake gui doing a configure and generate I simply type make.
hpci6001t(salmr0)126:make VERBOSE=1
Linking C executable fd3ptr
cd /gpfs01/vol0/salmr0/mspain/fd/build/src &&
/hpc/soft/cmake/ppc64/cmake-2.8.1/bin/cmake -E cmake_link_script
CMakeFiles/fd3ptr.dir/link.txt --verbose=1
xlc_r -O3 -qhot CMakeFiles/fd3ptr.dir/fd3ptr.c.o -o fd3ptr -rdynamic
xlc_r: 1501-216 (W) command option -dynamic is not recognized - passed to ld
/usr/bin/ld: unrecognized option '-dynamic'
/usr/bin/ld: use the --help option for usage information
Thanks for the help.
Rene
More information about the CMake
mailing list