diff --git a/CMakeLists.txt b/CMakeLists.txt index 5629f8c..8a09da2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.10) project(cpp_example) +# static linking +set(CMAKE_EXE_LINKER_FLAGS "-static") add_executable(cpp_example main.cpp) \ No newline at end of file