Files
DawnMagnet 0970a23501
CMake Build / build (push) Successful in 22s
add static linking
2025-03-22 11:05:33 +08:00

7 lines
151 B
CMake

cmake_minimum_required(VERSION 3.10)
project(cpp_example)
# static linking
set(CMAKE_EXE_LINKER_FLAGS "-static")
add_executable(cpp_example main.cpp)