Re: [CMake] 64bit linking on linux

2009-02-18 Thread Hendrik Sattler
Am Donnerstag 19 Februar 2009 07:07:27 schrieb Birju Prajapati: > > -Original Message- > > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On > > Behalf Of Hendrik Sattler > > Sent: 18 February 2009 19:18 > > To: cmake@cmake.org > > S

Re: [CMake] 64bit linking on linux

2009-02-18 Thread Birju Prajapati
> -Original Message- > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On > Behalf Of Hendrik Sattler > Sent: 18 February 2009 19:18 > To: cmake@cmake.org > Subject: Re: [CMake] 64bit linking on linux > architecture. > > Having a 64bit system wi

Re: [CMake] 64bit linking on linux

2009-02-18 Thread Hendrik Sattler
Am Mittwoch 18 Februar 2009 15:52:18 schrieb Bill Hoffman: > That is not the preferable way to do this. As it hard codes flags into > the CMake file. The way I would do it is: > > export CXXFLAGS=-m64 > export CFLAGS=-m64 > export LDFLAGS=-m64 > > cmake ../myproject > > If those environment varia

Re: [CMake] 64bit linking on linux

2009-02-18 Thread Bill Hoffman
Aaron Turner wrote: That is not the preferable way to do this. As it hard codes flags into the CMake file. The way I would do it is: export CXXFLAGS=-m64 export CFLAGS=-m64 export LDFLAGS=-m64 cmake ../myproject If those environment variables are set BEFORE you run cmake, then cmake will

Re: [CMake] 64bit linking on linux

2009-02-18 Thread Aaron Turner
On Wed, Feb 18, 2009 at 6:52 AM, Bill Hoffman wrote: > Birju Prajapati wrote: >> >> I've figured it out. I added the following lines into the root >> CMakeLists.txt file: >> >> >> SET(CMAKE_CXX_FLAGS "-m64") >> >> SET(CMAKE_C_FLAGS "-m64") >> >> SET(CMAKE_EXE_LINKER_FLAGS "-m64") >> >> SET(CMAKE_M

Re: [CMake] 64bit linking on linux

2009-02-18 Thread Bill Hoffman
Birju Prajapati wrote: I’ve figured it out. I added the following lines into the root CMakeLists.txt file: SET(CMAKE_CXX_FLAGS "-m64") SET(CMAKE_C_FLAGS "-m64") SET(CMAKE_EXE_LINKER_FLAGS "-m64") SET(CMAKE_MODULE_LINKER_FLAGS "-m64") SET(CMAKE_SHARED_LINKER_FLAGS "-m64") That is no

Re: [CMake] 64bit linking on linux

2009-02-18 Thread Birju Prajapati
On Behalf Of Birju Prajapati Sent: 18 February 2009 13:32 To: cmake@cmake.org Subject: [CMake] 64bit linking on linux Hi, I have a simple CMakeLists.txt file, in a directory called 'multicast': cmake_minimum_required(VERSION 2.6) include_directories(../.. /usr/local

[CMake] 64bit linking on linux

2009-02-18 Thread Birju Prajapati
Hi, I have a simple CMakeLists.txt file, in a directory called 'multicast': cmake_minimum_required(VERSION 2.6) include_directories(../.. /usr/local/include/boost-1_38) add_library(spreadx_multicast SHARED Message.cpp MulticastChannel.cpp) This successfully gives me a 64 bit .so: bi.