summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Darwin.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2024-07-01 14:03:10 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2024-07-22 14:58:51 (GMT)
commit1e35163ae8a333f7586aaa7c4f3a754a5018db49 (patch)
tree19c70ce00de6afbfc55d6eb2f51593288f76c6c9 /Modules/Platform/Darwin.cmake
parentc1c4cf9545d17928c065fca344c48e03b80291f0 (diff)
downloadCMake-1e35163ae8a333f7586aaa7c4f3a754a5018db49.zip
CMake-1e35163ae8a333f7586aaa7c4f3a754a5018db49.tar.gz
CMake-1e35163ae8a333f7586aaa7c4f3a754a5018db49.tar.bz2
WHOLE_ARCHIVE link feature: rely now on linker configuration
Fixes: #26019
Diffstat (limited to 'Modules/Platform/Darwin.cmake')
-rw-r--r--Modules/Platform/Darwin.cmake5
1 files changed, 0 insertions, 5 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index b26912d..f334c5f 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -141,11 +141,6 @@ set(CMAKE_LINK_LIBRARY_USING_WEAK_LIBRARY "PATH{LINKER:-weak_library,<LIBRARY>}N
set(CMAKE_LINK_LIBRARY_USING_WEAK_LIBRARY_SUPPORTED TRUE)
set(CMAKE_LINK_LIBRARY_WEAK_LIBRARY_ATTRIBUTES LIBRARY_TYPE=STATIC,SHARED DEDUPLICATION=DEFAULT OVERRIDE=DEFAULT)
-# Defines LINK_LIBRARY feature to Force loading of all members of an archive
-set(CMAKE_LINK_LIBRARY_USING_WHOLE_ARCHIVE "LINKER:-force_load,<LIB_ITEM>")
-set(CMAKE_LINK_LIBRARY_USING_WHOLE_ARCHIVE_SUPPORTED TRUE)
-set(CMAKE_LINK_LIBRARY_WHOLE_ARCHIVE_ATTRIBUTES LIBRARY_TYPE=STATIC DEDUPLICATION=YES OVERRIDE=DEFAULT)
-
# default to searching for frameworks first
if(NOT DEFINED CMAKE_FIND_FRAMEWORK)
set(CMAKE_FIND_FRAMEWORK FIRST)