Skip to content

Commit 23e5e58

Browse files
committed
add static flag to cmake
1 parent bc2d331 commit 23e5e58

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ endif()
1414
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1515
option(USE_INSTALL_RESOURCE_PATH "Set resource path to install location" OFF)
1616

17+
set(BUILD_SHARED_LIBS OFF)
18+
set(CMAKE_EXE_LINKER_FLAGS "-static")
19+
1720
file(GLOB_RECURSE SOURCES "src/*.cpp")
1821
file(GLOB_RECURSE LIB_SOURCES "lib/**/src/*.cpp")
1922

0 commit comments

Comments
 (0)