From 93bb77d30421fb901e1e1092859427b5a3e5edc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Mon, 21 Oct 2024 16:34:39 +0200 Subject: [PATCH] add_link_options --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b708440fb9..4acd36682e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -683,6 +683,11 @@ if(0) endif() endif() +add_link_options("-fuse-ld=lld") +add_link_options($<$:-nostdlib++>) +add_link_options($<$:-lc++>) +add_link_options($<$:-lc++abi>) + if(CMAKE_VERSION VERSION_LESS "3.7.0") set(CMAKE_INCLUDE_CURRENT_DIR ON) endif()