[Cmake-commits] CMake branch, next, updated. v2.8.12-4293-g2650c48

Brad King brad.king at kitware.com
Tue Oct 22 14:22:49 EDT 2013


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, next has been updated
       via  2650c482fc6404e6eb2fe05c30f5e6b3c609e88b (commit)
       via  705ae0049190dfa9e79e13c423c509b112a5e25b (commit)
       via  18a253732db75afb713ce1bdd07d593780a4590b (commit)
      from  faecd27bf0897c4adab130bac70fa26926c28a24 (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=2650c482fc6404e6eb2fe05c30f5e6b3c609e88b
commit 2650c482fc6404e6eb2fe05c30f5e6b3c609e88b
Merge: faecd27 705ae00
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Tue Oct 22 14:22:47 2013 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Tue Oct 22 14:22:47 2013 -0400

    Merge topic 'vs-graceful-empty-compiler' into next
    
    705ae00 Quote ${CMAKE_<LANG>_COMPILER} while enabling a language
    18a2537 CMakeDetermineCompilerId: Do not test vendor without a compiler


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=705ae0049190dfa9e79e13c423c509b112a5e25b
commit 705ae0049190dfa9e79e13c423c509b112a5e25b
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Tue Oct 22 14:05:23 2013 -0400
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Tue Oct 22 14:09:37 2013 -0400

    Quote ${CMAKE_<LANG>_COMPILER} while enabling a language
    
    Even though this variable gets set to CMAKE_<LANG>_COMPILER-NOTFOUND when
    the compiler is not found, CMake<LANG>Compiler.cmake gets removed by
    cmGlobalGenerator::EnableLanguage so in try compiles the value is empty.
    Quote references to the variable in
    
     Modules/CMake(C|CXX|Fortran)Information.cmake
     Modules/CMakeDetermineCompilerId.cmake
    
    to avoid dropping arguments from commands that expect them.

diff --git a/Modules/CMakeCInformation.cmake b/Modules/CMakeCInformation.cmake
index ce5ce44..0f5b694 100644
--- a/Modules/CMakeCInformation.cmake
+++ b/Modules/CMakeCInformation.cmake
@@ -34,7 +34,7 @@ if(CMAKE_C_COMPILER_ID)
 endif()
 
 set(CMAKE_BASE_NAME)
-get_filename_component(CMAKE_BASE_NAME ${CMAKE_C_COMPILER} NAME_WE)
+get_filename_component(CMAKE_BASE_NAME "${CMAKE_C_COMPILER}" NAME_WE)
 if(CMAKE_COMPILER_IS_GNUCC)
   set(CMAKE_BASE_NAME gcc)
 endif()
diff --git a/Modules/CMakeCXXInformation.cmake b/Modules/CMakeCXXInformation.cmake
index 933c15a..45ec95a 100644
--- a/Modules/CMakeCXXInformation.cmake
+++ b/Modules/CMakeCXXInformation.cmake
@@ -34,7 +34,7 @@ if(CMAKE_CXX_COMPILER_ID)
 endif()
 
 set(CMAKE_BASE_NAME)
-get_filename_component(CMAKE_BASE_NAME ${CMAKE_CXX_COMPILER} NAME_WE)
+get_filename_component(CMAKE_BASE_NAME "${CMAKE_CXX_COMPILER}" NAME_WE)
 # since the gnu compiler has several names force g++
 if(CMAKE_COMPILER_IS_GNUCXX)
   set(CMAKE_BASE_NAME g++)
diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index bb260f6..6fccb16 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -232,7 +232,7 @@ Id flags: ${testflags}
   else()
     if(COMMAND EXECUTE_PROCESS)
       execute_process(
-        COMMAND ${CMAKE_${lang}_COMPILER}
+        COMMAND "${CMAKE_${lang}_COMPILER}"
                 ${CMAKE_${lang}_COMPILER_ID_ARG1}
                 ${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}
                 ${testflags}
@@ -244,7 +244,7 @@ Id flags: ${testflags}
         )
     else()
       exec_program(
-        ${CMAKE_${lang}_COMPILER} ${CMAKE_${lang}_COMPILER_ID_DIR}
+        "${CMAKE_${lang}_COMPILER}" ${CMAKE_${lang}_COMPILER_ID_DIR}
         ARGS ${CMAKE_${lang}_COMPILER_ID_ARG1}
              ${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}
              ${testflags}
@@ -476,7 +476,7 @@ function(CMAKE_DETERMINE_COMPILER_ID_VENDOR lang)
     set(flags ${CMAKE_${lang}_COMPILER_ID_VENDOR_FLAGS_${vendor}})
     set(regex ${CMAKE_${lang}_COMPILER_ID_VENDOR_REGEX_${vendor}})
     execute_process(
-      COMMAND ${CMAKE_${lang}_COMPILER}
+      COMMAND "${CMAKE_${lang}_COMPILER}"
       ${CMAKE_${lang}_COMPILER_ID_ARG1}
       ${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST}
       ${flags}
diff --git a/Modules/CMakeFortranInformation.cmake b/Modules/CMakeFortranInformation.cmake
index 512ec48..debfd46 100644
--- a/Modules/CMakeFortranInformation.cmake
+++ b/Modules/CMakeFortranInformation.cmake
@@ -24,7 +24,7 @@ if(CMAKE_Fortran_COMPILER_ID)
 endif()
 
 set(CMAKE_BASE_NAME)
-get_filename_component(CMAKE_BASE_NAME ${CMAKE_Fortran_COMPILER} NAME_WE)
+get_filename_component(CMAKE_BASE_NAME "${CMAKE_Fortran_COMPILER}" NAME_WE)
 # since the gnu compiler has several names force g++
 if(CMAKE_COMPILER_IS_GNUG77)
   set(CMAKE_BASE_NAME g77)

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=18a253732db75afb713ce1bdd07d593780a4590b
commit 18a253732db75afb713ce1bdd07d593780a4590b
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Tue Oct 22 13:59:56 2013 -0400
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Tue Oct 22 13:59:56 2013 -0400

    CMakeDetermineCompilerId: Do not test vendor without a compiler
    
    If no CMAKE_${lang}_COMPILER is available then do not try to run
    it to determine the compiler vendor.

diff --git a/Modules/CMakeDetermineCompilerId.cmake b/Modules/CMakeDetermineCompilerId.cmake
index 0d7aa61..bb260f6 100644
--- a/Modules/CMakeDetermineCompilerId.cmake
+++ b/Modules/CMakeDetermineCompilerId.cmake
@@ -44,7 +44,7 @@ function(CMAKE_DETERMINE_COMPILER_ID lang flagvar src)
   endforeach()
 
   # If the compiler is still unknown, try to query its vendor.
-  if(NOT CMAKE_${lang}_COMPILER_ID)
+  if(CMAKE_${lang}_COMPILER AND NOT CMAKE_${lang}_COMPILER_ID)
     CMAKE_DETERMINE_COMPILER_ID_VENDOR(${lang})
   endif()
 

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

Summary of changes:
 Modules/CMakeCInformation.cmake        |    2 +-
 Modules/CMakeCXXInformation.cmake      |    2 +-
 Modules/CMakeDetermineCompilerId.cmake |    8 ++++----
 Modules/CMakeFortranInformation.cmake  |    2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list