diff options
author | Peter Kümmel <syntheticpp@gmx.net> | 2012-07-11 06:55:00 (GMT) |
---|---|---|
committer | Peter Kümmel <syntheticpp@gmx.net> | 2012-07-11 06:55:00 (GMT) |
commit | 3a2c8e8e666ebf63c20d933cc255237a18153867 (patch) | |
tree | 3a318d04a212a0fb153bf6985d6252a9faa5a785 /Modules/Platform/Windows-GNU.cmake | |
parent | 3856e6698eb80d4ee3d8d7606c16e5fa3a2bef8c (diff) | |
download | CMake-3a2c8e8e666ebf63c20d933cc255237a18153867.zip CMake-3a2c8e8e666ebf63c20d933cc255237a18153867.tar.gz CMake-3a2c8e8e666ebf63c20d933cc255237a18153867.tar.bz2 |
Ninja: disable work around when linking with mingw
The work around is only needed by older GCCs (only testet 4.4/4.7)
Ninja is very new so chances are high that there is also a new mingw.
Use slashes in link rsp file, because ar.exe can't handle \.
Diffstat (limited to 'Modules/Platform/Windows-GNU.cmake')
-rw-r--r-- | Modules/Platform/Windows-GNU.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake index 1a2ee5e..4a37eca 100644 --- a/Modules/Platform/Windows-GNU.cmake +++ b/Modules/Platform/Windows-GNU.cmake @@ -115,7 +115,9 @@ macro(__windows_compiler_gnu lang) list(APPEND CMAKE_${lang}_ABI_FILES "Platform/Windows-GNU-${lang}-ABI") # Support very long lists of object files. - if("${CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG}" STREQUAL "@") + # TODO: check for which gcc versions this is still needed, not needed for gcc >= 4.4. + # Ninja generator doesn't support this work around. + if("${CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG}" STREQUAL "@" AND NOT CMAKE_GENERATOR MATCHES "Ninja") foreach(rule CREATE_SHARED_MODULE CREATE_SHARED_LIBRARY LINK_EXECUTABLE) # The gcc/collect2/ld toolchain does not use response files # internally so we cannot pass long object lists. Instead pass |