Skip to content

Commit

Permalink
Static link libstdc and libgcc
Browse files Browse the repository at this point in the history
  • Loading branch information
mimi89999 committed Apr 19, 2024
1 parent f07c2c9 commit 36cf8a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down

0 comments on commit 36cf8a2

Please sign in to comment.