diff options
author | Brad King <brad.king@kitware.com> | 2011-02-23 15:56:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-02-23 16:04:17 (GMT) |
commit | 761621645c8605252eea9d3a0d171edc46a529c5 (patch) | |
tree | 06161f337879f90c1078cef6ebe1192442b5b3da /Modules | |
parent | 6a61a8a5383fe7418cdd893c97328a27b86b08da (diff) | |
download | CMake-761621645c8605252eea9d3a0d171edc46a529c5.zip CMake-761621645c8605252eea9d3a0d171edc46a529c5.tar.gz CMake-761621645c8605252eea9d3a0d171edc46a529c5.tar.bz2 |
Pass .def files directly to MinGW tools (#9997)
Commit 6a61a8a5 (Honor module .def files with MinGW tools, 2011-02-21)
set CMAKE_LINK_DEF_FILE_FLAG to "-Wl," to enable passing .def files to
the linker on MinGW. However, older GNU tools in the MSYS shell do not
know how to translate "-Wl,/c/..." to "c:/..." and complain that the
file does not exist. Instead set the flag to just "" which tells CMake
it can pass the file through the front-end with no special flag.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Windows-GNU.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake index 8df0bcb..72b5d62 100644 --- a/Modules/Platform/Windows-GNU.cmake +++ b/Modules/Platform/Windows-GNU.cmake @@ -43,7 +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_DEF_FILE_FLAG "") # Empty string: passing the file is enough set(CMAKE_LINK_LIBRARY_SUFFIX "") set(CMAKE_CREATE_WIN32_EXE "-mwindows") |