summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-12-16 15:11:53 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-12-16 15:11:53 (GMT)
commit7e6c8edb15e98bc932dabd7db051dc2d0bd8427f (patch)
tree14e72367af7d3b511c0b1b3d67db6e9d24b44a4a
parent762930efe809edc203065efac380305fd83374a8 (diff)
parent4cb73c43ac13a4b796c61da137a1576c8c6a4d23 (diff)
downloadCMake-7e6c8edb15e98bc932dabd7db051dc2d0bd8427f.zip
CMake-7e6c8edb15e98bc932dabd7db051dc2d0bd8427f.tar.gz
CMake-7e6c8edb15e98bc932dabd7db051dc2d0bd8427f.tar.bz2
Merge topic 'FortranCInterface-MinGW'
4cb73c4 FortranCInterface: Work around mingw32-make trouble with parens
-rw-r--r--Modules/FortranCInterface.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/FortranCInterface.cmake b/Modules/FortranCInterface.cmake
index 90ef59b..2455c5f 100644
--- a/Modules/FortranCInterface.cmake
+++ b/Modules/FortranCInterface.cmake
@@ -116,6 +116,14 @@ endforeach()
#-----------------------------------------------------------------------------
set(FortranCInterface_SOURCE_DIR ${CMAKE_ROOT}/Modules/FortranCInterface)
+# MinGW's make tool does not always like () in the path
+if("${CMAKE_GENERATOR}" MATCHES "MinGW" AND
+ "${FortranCInterface_SOURCE_DIR}" MATCHES "[()]")
+ file(COPY ${FortranCInterface_SOURCE_DIR}/
+ DESTINATION ${CMAKE_BINARY_DIR}/CMakeFiles/FortranCInterfaceMinGW)
+ set(FortranCInterface_SOURCE_DIR ${CMAKE_BINARY_DIR}/CMakeFiles/FortranCInterfaceMinGW)
+endif()
+
# Create the interface detection project if it does not exist.
if(NOT FortranCInterface_BINARY_DIR)
set(FortranCInterface_BINARY_DIR ${CMAKE_BINARY_DIR}/CMakeFiles/FortranCInterface)