summaryrefslogtreecommitdiff
path: root/Modules/Platform/Windows-GNU.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-02-21 13:30:10 -0500
committerBrad King <brad.king@kitware.com>2011-02-21 14:34:54 -0500
commit6a61a8a5383fe7418cdd893c97328a27b86b08da (patch)
tree564203061b40b016094601e6849283662928884e /Modules/Platform/Windows-GNU.cmake
parent1ca15f85f10704b382d5459f88d57839b7462c55 (diff)
downloadcmake-6a61a8a5383fe7418cdd893c97328a27b86b08da.tar.gz
Honor module .def files with MinGW tools (#9997)
Since commit 024d05ad (Fix use of module .def files for MS tools, 2009-09-29) module .def files work for any platform that sets CMAKE_LINK_DEF_FILE_FLAG correctly. Set it in the Windows-GNU platform information file to enable support with MinGW tools. Also enable the test added by commit 0db2c850 (Test use of module .def files for MS tools, 2009-09-29) for MinGW and MSYS generators.
Diffstat (limited to 'Modules/Platform/Windows-GNU.cmake')
-rw-r--r--Modules/Platform/Windows-GNU.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake
index 7084b83bae..8df0bcbaf9 100644
--- a/Modules/Platform/Windows-GNU.cmake
+++ b/Modules/Platform/Windows-GNU.cmake
@@ -43,6 +43,7 @@ endif()
set(CMAKE_DL_LIBS "")
set(CMAKE_LIBRARY_PATH_FLAG "-L")
set(CMAKE_LINK_LIBRARY_FLAG "-l")
+set(CMAKE_LINK_DEF_FILE_FLAG "-Wl,")
set(CMAKE_LINK_LIBRARY_SUFFIX "")
set(CMAKE_CREATE_WIN32_EXE "-mwindows")