[Cmake] Can I use CMAKE_COMPILER_IS_GNUCXX
Miller, James V (Research)
millerjv at crd.ge.com
Tue Sep 17 13:15:50 EDT 2002
It may... never timed it. 'Course I can't imagine why there is
a limit anyway. I would guess that it would increase the memory
usage of the compiler not necessary the speed.
For ITK, we set the template depth to be 50.
> -----Original Message-----
> From: Ian Scott [mailto:ian.m.scott at stud.man.ac.uk]
> Sent: Tuesday, September 17, 2002 1:12 PM
> To: Miller, James V (Research)
> Subject: RE: [Cmake] Can I use CMAKE_COMPILER_IS_GNUCXX
>
>
> Would that not slow down compilation of everything?
>
> > -----Original Message-----
> > From: Miller, James V (Research) [mailto:millerjv at crd.ge.com]
> > Sent: Tuesday, September 17, 2002 6:06 PM
> > To: Ian Scott; Cmake at Public. Kitware. Com (E-mail)
> > Subject: RE: [Cmake] Can I use CMAKE_COMPILER_IS_GNUCXX
> >
> >
> > Why not just bump the template limit globally?
> >
> >
> > > -----Original Message-----
> > > From: Ian Scott [mailto:ian.m.scott at stud.man.ac.uk]
> > > Sent: Tuesday, September 17, 2002 12:49 PM
> > > To: Cmake at Public. Kitware. Com (E-mail)
> > > Subject: [Cmake] Can I use CMAKE_COMPILER_IS_GNUCXX
> > >
> > >
> > > I need to set a specific flag for a specific file for a
> > > specific compiler
> > >
> > > The closest I can get is
> > >
> > > IF (CMAKE_COMPILER_IS_GNUCXX)
> > >
> > > SET_SOURCE_FILES_PROPERTIES(Templates/vsl_vector_io+vcl_vector
> > > _vcl_vector_vn
> > > l_vector~-.cxx COMPILE_FLAGS -ftemplate-depth-25)
> > > ENDIF(CMAKE_COMPILER_IS_GNUCXX)
> > >
> > > However, CMAKE_COMPILER_IS_GNUCXX is an internal variable.
> > > Does that mean
> > > that I shouldn't use it - will it change between versions? If
> > > so is there
> > > some better way of determining if gcc is being used?
> > >
> > > Ian.
> > >
> > >
> > > _______________________________________________
> > > Cmake mailing list
> > > Cmake at public.kitware.com
> > > http://public.kitware.com/mailman/listinfo/cmake
> > >
> >
>
More information about the CMake
mailing list