diff options
author | Brad King <brad.king@kitware.com> | 2014-03-10 16:57:59 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-10 17:12:00 -0400 |
commit | 8c9bfac3848bc2c53c034b03cf89a3aaa8f3a248 (patch) | |
tree | 3f3710543d3d3305b0b2ff1d0b611a864a33dfa8 /Modules/CMakeDetermineCCompiler.cmake | |
parent | 6852fb8034d30d14498dc874378881696a6ada23 (diff) | |
download | cmake-8c9bfac3848bc2c53c034b03cf89a3aaa8f3a248.tar.gz |
Xcode: Convert forced CMAKE_<LANG>_COMPILER to full path if possible
During cross-compiling the toolchain file may use CMakeForceCompiler to
force a compiler setting. When using the Xcode generator try to convert
it to a full path by searching the PATH as is done for the Makefile
generators.
Diffstat (limited to 'Modules/CMakeDetermineCCompiler.cmake')
-rw-r--r-- | Modules/CMakeDetermineCCompiler.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCCompiler.cmake b/Modules/CMakeDetermineCCompiler.cmake index 4f7ae24329..aa4cdc940c 100644 --- a/Modules/CMakeDetermineCCompiler.cmake +++ b/Modules/CMakeDetermineCCompiler.cmake @@ -42,6 +42,7 @@ endif() if(${CMAKE_GENERATOR} MATCHES "Visual Studio") elseif("${CMAKE_GENERATOR}" MATCHES "Xcode") set(CMAKE_C_COMPILER_XCODE_TYPE sourcecode.c.c) + _cmake_find_compiler_path(C) else() if(NOT CMAKE_C_COMPILER) set(CMAKE_C_COMPILER_INIT NOTFOUND) |