Boost logo

Boost-Commit :

From: troy_at_[hidden]
Date: 2007-05-25 21:46:54


Author: troy
Date: 2007-05-25 21:46:54 EDT (Fri, 25 May 2007)
New Revision: 4266
URL: http://svn.boost.org/trac/boost/changeset/4266

Log:
get correct compiler version even when ccache is in use

Text files modified:
   sandbox-branches/boost-cmake/boost_1_34_0/DartConfig.cmake | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: sandbox-branches/boost-cmake/boost_1_34_0/DartConfig.cmake
==============================================================================
--- sandbox-branches/boost-cmake/boost_1_34_0/DartConfig.cmake (original)
+++ sandbox-branches/boost-cmake/boost_1_34_0/DartConfig.cmake 2007-05-25 21:46:54 EDT (Fri, 25 May 2007)
@@ -17,7 +17,8 @@
 
 exec_program(svn ARGS info ${CMAKE_SOURCE_DIR} | grep Revision | cut -c 11- OUTPUT_VARIABLE SVN_REVISION)
 
-exec_program(${CMAKE_C_COMPILER} ARGS -dumpversion OUTPUT_VARIABLE COMPILER_VERSION)
+message(${CMAKE_CXX_COMPILER} ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion OUTPUT_VARIABLE COMPILER_VERSION)
+exec_program(${CMAKE_CXX_COMPILER} ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion OUTPUT_VARIABLE COMPILER_VERSION)
 exec_program(uname ARGS -s OUTPUT_VARIABLE OSTYPE)
 exec_program(uname ARGS -r OUTPUT_VARIABLE OSVERSION)
 exec_program(uname ARGS -p OUTPUT_VARIABLE ARCH)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk