Brad's recently committed and merged to next a topic that does just that. See the commits in this view:
gitk e0bc42aa4ff086e9c6976ab91ba924530df0bf72..0df1942a72f1e67c88f0d02dc405fbd76793347a & If you are using next, you can inspect the variables CMAKE_C_COMPILER_VERSION and CMAKE_CXX_COMPILER_VERSION, after a "project" or "enable_language" command. It will likely first appear in the upcoming CMake 2.8.8... HTH, David On Fri, Jan 13, 2012 at 4:39 PM, James Bigler <jamesbig...@gmail.com> wrote: > Is there a CMake variable for the GCC compiler version if using GCC? I > thought I remember seeing email traffic about something along these lines a > while back, but I can't find the email or documentation describing it (if it > exists). > > Thanks, > James > > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake