summaryrefslogtreecommitdiff
path: root/Modules/Platform/Windows-GNU.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-03-02 17:32:44 +0100
committerMarc Chevrier <marc.chevrier@gmail.com>2022-03-05 12:40:26 +0100
commitb0fada9964589462127cfcc45f1c6f003c349ebc (patch)
tree597e818443e62c71b0ce178dab32c3d310159d80 /Modules/Platform/Windows-GNU.cmake
parenta950fd9553cc4a9457bbe701399fce09ed360151 (diff)
downloadcmake-b0fada9964589462127cfcc45f1c6f003c349ebc.tar.gz
Genex-LINK_GROUP: Add feature RESCAN
Feature RESCAN can be used to manage circular references between static libraries.
Diffstat (limited to 'Modules/Platform/Windows-GNU.cmake')
-rw-r--r--Modules/Platform/Windows-GNU.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-GNU.cmake b/Modules/Platform/Windows-GNU.cmake
index 51dc14631c..3c24c2165a 100644
--- a/Modules/Platform/Windows-GNU.cmake
+++ b/Modules/Platform/Windows-GNU.cmake
@@ -44,6 +44,14 @@ if("${_help}" MATCHES "GNU ld .* 2\\.1[1-6]")
set(__WINDOWS_GNU_LD_RESPONSE 0)
endif()
+
+# Features for LINK_GROUP generator expression
+## RESCAN: request the linker to rescan static libraries until there is
+## no pending undefined symbols
+set(CMAKE_LINK_GROUP_USING_RESCAN "LINKER:--start-group" "LINKER:--end-group")
+set(CMAKE_LINK_GROUP_USING_RESCAN_SUPPORTED TRUE)
+
+
macro(__windows_compiler_gnu lang)
# Create archiving rules to support large object file lists for static libraries.