From 36cf8a2c35859dce4f9502eb9f218aee6434bf83 Mon Sep 17 00:00:00 2001 From: mimi89999 Date: Fri, 19 Apr 2024 11:18:26 +0200 Subject: [PATCH] Static link libstdc and libgcc --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f946744..f806f06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,8 @@ set(CMAKE_CXX_STANDARD 17) add_library(scs_sdk_controller SHARED scs_sdk_controller.cpp) +target_link_options(scs_sdk_controller PRIVATE "-static-libstdc++" "-static-libgcc") + target_include_directories(scs_sdk_controller PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/scs_sdk/include/"