summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-07 19:41:19 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-10-07 19:41:19 (GMT)
commit610234a5e8285a1cfac453cc7a5432b7c0a81e9d (patch)
treed6acf15f7d2b5903b2afd1d4d381935e394d054d /Modules
parent0f32faafdb3094d0ad03ff51eddf3ca02f5cfa3f (diff)
parentd7a65a2f2cdaf36e42fe9c0d2a9ff55fecb79dc4 (diff)
downloadCMake-610234a5e8285a1cfac453cc7a5432b7c0a81e9d.zip
CMake-610234a5e8285a1cfac453cc7a5432b7c0a81e9d.tar.gz
CMake-610234a5e8285a1cfac453cc7a5432b7c0a81e9d.tar.bz2
Merge topic 'FortranCInterface-cross-compile'
d7a65a2 FortranCInterface: Fix cross-compiling Linux to MinGW (#14358)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FortranCInterface/Detect.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FortranCInterface/Detect.cmake b/Modules/FortranCInterface/Detect.cmake
index 798c44c..afeb9c5 100644
--- a/Modules/FortranCInterface/Detect.cmake
+++ b/Modules/FortranCInterface/Detect.cmake
@@ -49,7 +49,7 @@ unset(FortranCInterface_COMPILED CACHE)
# Locate the sample project executable.
if(FortranCInterface_COMPILED)
find_program(FortranCInterface_EXE
- NAMES FortranCInterface
+ NAMES FortranCInterface${CMAKE_EXECUTABLE_SUFFIX}
PATHS ${FortranCInterface_BINARY_DIR} ${FortranCInterface_BINARY_DIR}/Debug
NO_DEFAULT_PATH
)