[Cmake] large file support

Andy Cedilnik andy . cedilnik at kitware . com
09 Oct 2003 15:00:41 -0400


Hi Peng,

You can do this by performing TRY_RUN. Even on 64 bit platform you
should be able to run 32 bit CMake (example SGI/I64/G5). So, what you
really want is the test of the system. This is currently not in CMake,
but you can write it easily. Look in Mastering CMake page 65.

			Andy 

On Thu, 2003-10-09 at 14:38, Peng Liwei wrote:
> What I want is this:
> 
> some computer platforms support 64-bit files,
> some only support 32-bit. To make our program
> portable, we would like CMake automatically
> detect, when I run 'ccmake', whether the platform
> support 64 or not.
> If it supports 64-bit file , then add certain compiler
> flag. 
> 
> Thanks.
> 
> liwei
> 
> --- Brad King <brad . king at kitware . com> wrote:
> > On Thu, 9 Oct 2003, Peng Liwei wrote:
> > 
> > > I am using CMake to build our C++ software
> > > system on RedHat 9 Linux. Can anyone tell me
> > whether
> > > Cmake has large file support options (64 bits)
> > > so that we can fseek a 5GB file?
> > >
> > > I know autoconf/automake system has such support.
> > > Does CMake have a similar way?
> > 
> > I'm afraid we don't understand what you're asking. 
> > What program in the
> > toolchain do you want to access a 5 GB file?  CMake?
> > make? The compiler?
> > The program that is compiled?
> > 
> > If you just want your software compiled with the
> > proper flags to enable
> > 64-bit fseek operations, then you can add the flags
> > yourself to
> > CMAKE_C_FLAGS and CMAKE_CXX_FLAGS.  If building your
> > software requires
> > these flags and will not work without them, then it
> > is possible to write
> > CMakeLists.txt files that automatically add the
> > flags by detecting the
> > compiler being used.
> > 
> > -Brad
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping . yahoo . com
> _______________________________________________
> Cmake mailing list
> Cmake at www . cmake . org
> http://www . cmake . org/mailman/listinfo/cmake