Added missing CMake option: BUILD_STATIC

This commit is contained in:
XMRig
2024-04-04 01:52:19 +07:00
parent d50de5d973
commit 0e71c4bec2

View File

@@ -26,6 +26,10 @@ if (CMAKE_CXX_COMPILER_ID MATCHES GNU)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
endif()
if (BUILD_STATIC)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
endif()
add_definitions(/D_GNU_SOURCE)
if (WITH_GOOGLE_BREAKPAD)