[CMake] CMake problem on Solaris with suncc

2008-10-27 Thread Gerhard Gappmeier
Hi all, I try to build my program with cmake on Solaris using cc (suncc). The problem is when activating -xtarget=ultra -xarch=v9 I get linker errors wrong ELF class: ELFCLASS64. I created a simple hello world example to reproduce the problem. It consists of a simple hello-library and a test

Re: [CMake] CMake problem on Solaris with suncc

2008-10-27 Thread cyril_wobow
Here is the environment I enforce on solaris to build with cmake/solaris/suncc64 : export LINKFLAGS=-m64 ; export CFLAGS=-m64 ; export CPPFLAGS=-m64; export CC=/opt/SUNWspro/bin/suncc ; export CPP=/opt/SUNWspro/bin/suncc; export CXX=/opt/SUNWspro/bin/sunCC Hope this helps ! Cyril Gerhard

Re: [CMake] CMake problem on Solaris with suncc

2008-10-27 Thread Bill Hoffman
cyril_wobow wrote: Here is the environment I enforce on solaris to build with cmake/solaris/suncc64 : export LINKFLAGS=-m64 ; export CFLAGS=-m64 ; export CPPFLAGS=-m64; export CC=/opt/SUNWspro/bin/suncc ; export CPP=/opt/SUNWspro/bin/suncc; export CXX=/opt/SUNWspro/bin/sunCC Hope this

Re: [CMake] CMake problem on Solaris with suncc

2008-10-27 Thread Gerhard Gappmeier
Hi this was a good tip to configure the compiler using the environment variables. I just changed -m64 to the old xtarget settings, because this is to new for my compiler. I removed all compiler settings from the CMakeLists.txt and now it seems to work, except from the assembler. Now I'm using

Re: [CMake] CMake problem on Solaris with suncc

2008-10-27 Thread Hendrik Sattler
Bill Hoffman schrieb: You have to start with an empty cache. Re-run cmake with no CMakeCache.txt. Then make sure the CMAKE_C_FLAGS are correct. Shouldn't that be CMAKE_ASM_FLAGS if the .s file has the language property set to ASM? HS ___ CMake

Re: [CMake] CMake problem on Solaris with suncc

2008-10-27 Thread Gerhard Gappmeier
Hi, CMakeCache.txt is not the problem. I do out-of-source builds and completely remove the build folder before each build CMAKE_ASM_FLAGS sounds good and I found some references in the internet about it. But this seems not to be used anymore. If you do a grep in cmake/Modules for ASMFLAGS or