From 2e8f48345b27081173e440293b10602478fca360 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 21 Aug 2022 13:56:06 -0500 Subject: [PATCH] fix: link executable statically to prevent errors --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3421591..3911732 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,3 +5,4 @@ set(CMAKE_CXX_STANDARD 17) add_executable(modlimitfix main.cpp) +target_link_libraries(modlimitfix -static-libgcc -static-libstdc++)