summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-06-15 17:58:58 (GMT)
committerBrad King <brad.king@kitware.com>2010-06-15 17:58:58 (GMT)
commitd9b2da139dc4ca145551861c3b2369c5d1bda980 (patch)
tree8bef5d85d5efa4c344b7ebbbdf8d69991f6d4e52 /Modules
parentd714b18ac5f415e15c5e03bf8f6aaeaf45e143f5 (diff)
parent00477de1c92d94e78cebdaf6c29ff2847207f454 (diff)
downloadCMake-d9b2da139dc4ca145551861c3b2369c5d1bda980.zip
CMake-d9b2da139dc4ca145551861c3b2369c5d1bda980.tar.gz
CMake-d9b2da139dc4ca145551861c3b2369c5d1bda980.tar.bz2
Merge branch 'mingw-response-files'
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/Windows-GNU-Fortran.cmake1
-rw-r--r--Modules/Platform/Windows-GNU.cmake2
2 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-GNU-Fortran.cmake b/Modules/Platform/Windows-GNU-Fortran.cmake
index c66feed..8273a19 100644
--- a/Modules/Platform/Windows-GNU-Fortran.cmake
+++ b/Modules/Platform/Windows-GNU-Fortran.cmake
@@ -1,2 +1,3 @@
include(Platform/Windows-GNU)
__windows_compiler_gnu(Fortran)
+set(CMAKE_Fortran_USE_RESPONSE_FILE_FOR_OBJECTS 0)
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake
index 6d84940..af03841 100644
--- a/Modules/Platform/Windows-GNU.cmake
+++ b/Modules/Platform/Windows-GNU.cmake
@@ -68,6 +68,8 @@ macro(__windows_compiler_gnu lang)
endif()
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "") # No -fPIC on Windows
+ set(CMAKE_${lang}_USE_RESPONSE_FILE_FOR_OBJECTS 1)
+ set(CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG "-Wl,@")
# Binary link rules.
set(CMAKE_${lang}_CREATE_SHARED_MODULE