diff options
author | Brad King <brad.king@kitware.com> | 2013-10-22 18:05:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-10-22 18:09:37 (GMT) |
commit | 705ae0049190dfa9e79e13c423c509b112a5e25b (patch) | |
tree | 1ee3ddb7081fe0f1cfbd94e22daab84ae83e452a /Modules/CMakeCInformation.cmake | |
parent | 18a253732db75afb713ce1bdd07d593780a4590b (diff) | |
download | CMake-705ae0049190dfa9e79e13c423c509b112a5e25b.zip CMake-705ae0049190dfa9e79e13c423c509b112a5e25b.tar.gz CMake-705ae0049190dfa9e79e13c423c509b112a5e25b.tar.bz2 |
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.
Diffstat (limited to 'Modules/CMakeCInformation.cmake')
-rw-r--r-- | Modules/CMakeCInformation.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
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() |