summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineFortranCompiler.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-10 20:57:59 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-10 21:12:00 (GMT)
commit8c9bfac3848bc2c53c034b03cf89a3aaa8f3a248 (patch)
tree3f3710543d3d3305b0b2ff1d0b611a864a33dfa8 /Modules/CMakeDetermineFortranCompiler.cmake
parent6852fb8034d30d14498dc874378881696a6ada23 (diff)
downloadCMake-8c9bfac3848bc2c53c034b03cf89a3aaa8f3a248.zip
CMake-8c9bfac3848bc2c53c034b03cf89a3aaa8f3a248.tar.gz
CMake-8c9bfac3848bc2c53c034b03cf89a3aaa8f3a248.tar.bz2
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/CMakeDetermineFortranCompiler.cmake')
-rw-r--r--Modules/CMakeDetermineFortranCompiler.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineFortranCompiler.cmake b/Modules/CMakeDetermineFortranCompiler.cmake
index f4aaa0a..d38bf25 100644
--- a/Modules/CMakeDetermineFortranCompiler.cmake
+++ b/Modules/CMakeDetermineFortranCompiler.cmake
@@ -28,6 +28,7 @@ endif()
if(${CMAKE_GENERATOR} MATCHES "Visual Studio")
elseif("${CMAKE_GENERATOR}" MATCHES "Xcode")
set(CMAKE_Fortran_COMPILER_XCODE_TYPE sourcecode.fortran.f90)
+ _cmake_find_compiler_path(Fortran)
else()
if(NOT CMAKE_Fortran_COMPILER)
# prefer the environment variable CC