summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-03-23 13:30:22 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-03-23 13:30:29 (GMT)
commitc4d16c49646d1c67911df4856d33d47d6c566855 (patch)
tree8225f452988957054ec482103d9a4ecdb6d31d19 /Modules
parent7936fc65dc75ac089e60b66bc28eb16ef64e534d (diff)
parentd6583327827a7d53b358cbec03186293c4a5d53d (diff)
downloadCMake-c4d16c49646d1c67911df4856d33d47d6c566855.zip
CMake-c4d16c49646d1c67911df4856d33d47d6c566855.tar.gz
CMake-c4d16c49646d1c67911df4856d33d47d6c566855.tar.bz2
Merge topic 'LINK_GROUP-feat-RESCAN-on-BSD-systems'
d658332782 Genex-LINK_GROUP: Add support feature RESCAN on BSD systems Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7104
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/FreeBSD.cmake7
-rw-r--r--Modules/Platform/NetBSD.cmake7
2 files changed, 14 insertions, 0 deletions
diff --git a/Modules/Platform/FreeBSD.cmake b/Modules/Platform/FreeBSD.cmake
index 4c8cb6a..bd5a786 100644
--- a/Modules/Platform/FreeBSD.cmake
+++ b/Modules/Platform/FreeBSD.cmake
@@ -53,4 +53,11 @@ endif()
set(CMAKE_LINK_LIBRARY_USING_WHOLE_ARCHIVE_SUPPORTED TRUE)
+# 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)
+
+
include(Platform/UnixPaths)
diff --git a/Modules/Platform/NetBSD.cmake b/Modules/Platform/NetBSD.cmake
index 8774159..ab85923 100644
--- a/Modules/Platform/NetBSD.cmake
+++ b/Modules/Platform/NetBSD.cmake
@@ -39,4 +39,11 @@ endif()
set(CMAKE_LINK_LIBRARY_USING_WHOLE_ARCHIVE_SUPPORTED TRUE)
+# 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)
+
+
include(Platform/UnixPaths)