[Cmake-commits] CMake branch, master, updated. fd38eda9fe92dea61372e3ee1b54dfa49d6bddce

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Mar 15 15:17:41 EDT 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
       via  fd38eda9fe92dea61372e3ee1b54dfa49d6bddce (commit)
      from  ebdda6ed138173a287e52d7877c528ec8ccc817f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=fd38eda9fe92dea61372e3ee1b54dfa49d6bddce
commit fd38eda9fe92dea61372e3ee1b54dfa49d6bddce
Author: Brad King <brad.king at kitware.com>
Date:   Mon Mar 15 09:00:31 2010 -0400

    Support multiple arguments in CC,CXX,FC values
    
    Teach compiler identification to support values such as
    
      export CC='gcc -g -O2'
    
    by separating the arguments on spaces.  We already do this for the
    values of CFLAGS, CXXFLAGS, and FFLAGS.

diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index bddd6a1..4a800a8 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -19,6 +19,7 @@
 FUNCTION(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
   # Make sure the compiler arguments are clean.
   STRING(STRIP "${CMAKE_${lang}_COMPILER_ARG1}" CMAKE_${lang}_COMPILER_ID_ARG1)
+  STRING(REGEX REPLACE " +" ";" CMAKE_${lang}_COMPILER_ID_ARG1 "${CMAKE_${lang}_COMPILER_ID_ARG1}")
 
   # Make sure user-specified compiler flags are used.
   IF(CMAKE_${lang}_FLAGS)

-----------------------------------------------------------------------

Summary of changes:
 Modules/CMakeDetermineCompilerId.cmake |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list