summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeFortranInformation.cmake
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2015-12-02 14:47:43 (GMT)
committerChuck Atkins <chuck.atkins@kitware.com>2015-12-07 16:09:06 (GMT)
commit5eaac0c96ac51e1300664ef37239f3215bb58489 (patch)
tree6ee1af9c2d05d450430d99fa136e40fdd83ed26c /Modules/CMakeFortranInformation.cmake
parent4e29a514ad83c5711e7ee894b825203e8c302269 (diff)
downloadCMake-5eaac0c96ac51e1300664ef37239f3215bb58489.zip
CMake-5eaac0c96ac51e1300664ef37239f3215bb58489.tar.gz
CMake-5eaac0c96ac51e1300664ef37239f3215bb58489.tar.bz2
Compiler: Add infrastructure for detecting compiler wrappers
Diffstat (limited to 'Modules/CMakeFortranInformation.cmake')
-rw-r--r--Modules/CMakeFortranInformation.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/CMakeFortranInformation.cmake b/Modules/CMakeFortranInformation.cmake
index 79393d3..1fd0972 100644
--- a/Modules/CMakeFortranInformation.cmake
+++ b/Modules/CMakeFortranInformation.cmake
@@ -12,6 +12,8 @@
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
+include(CMakeLanguageInformation)
+
# This file sets the basic flags for the Fortran language in CMake.
# It also loads the available platform file for the system-compiler
# if it exists.
@@ -36,6 +38,12 @@ if (NOT _INCLUDED_FILE)
include(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL
RESULT_VARIABLE _INCLUDED_FILE)
endif ()
+
+# load any compiler-wrapper specific information
+if (CMAKE_Fortran_COMPILER_WRAPPER)
+ __cmake_include_compiler_wrapper(Fortran)
+endif ()
+
# We specify the compiler information in the system file for some
# platforms, but this language may not have been enabled when the file
# was first included. Include it again to get the language info.