[Cmake] Can I use CMAKE_COMPILER_IS_GNUCXX

Miller, James V (Research) millerjv at crd.ge.com
Tue Sep 17 13:06:23 EDT 2002


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