[CMake] CMake 2.8.1 available for download

Alan W. Irwin irwin at beluga.phys.uvic.ca
Wed Mar 17 15:43:41 EDT 2010


Hi Bill:

I just discovered you did not include the regression fixup below in
cmake-2.8.1.  I spent a fair amount of effort making a simple test case at
your request, verifying that Brad's one-liner patch worked, etc.  I assume
you didn't include it due to an oversight or because the issue was
discovered and fixed too close to release, but could you please make sure
this regression fix is included in the next CMake release?

Alan

---------- Forwarded message ----------
Date: Mon, 15 Mar 2010 09:07:17 -0400
From: Brad King <brad.king at kitware.com>
To: Alan W. Irwin <irwin at beluga.phys.uvic.ca>
Cc: Bill Hoffman <bill.hoffman at kitware.com>, CMake <cmake at cmake.org>
Subject: [PATCH] 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.
[...]
---

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

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)
-- 
1.6.6.1


More information about the CMake mailing list