Updated build
This commit is contained in:
parent
9716f6ed24
commit
b373f48805
3 changed files with 3 additions and 2 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
||||||
run: git clone https://github.com/xmrig/xmrig-deps.git
|
run: git clone https://github.com/xmrig/xmrig-deps.git
|
||||||
- name: Build project on Windows
|
- name: Build project on Windows
|
||||||
run: |
|
run: |
|
||||||
cmake . -G "MinGW Makefiles" -DXMRIG_DEPS=./xmrig-deps/gcc/x64
|
cmake . -G "Unix Makefiles" -DXMRIG_DEPS=./xmrig-deps/gcc/x64
|
||||||
make -j2
|
make -j2
|
||||||
|
|
||||||
build_lin:
|
build_lin:
|
||||||
|
|
|
@ -174,6 +174,7 @@ if (XMRIG_OS_WIN)
|
||||||
)
|
)
|
||||||
|
|
||||||
set(EXTRA_LIBS ws2_32 psapi iphlpapi userenv dbghelp)
|
set(EXTRA_LIBS ws2_32 psapi iphlpapi userenv dbghelp)
|
||||||
|
add_library(${EXTRA_LIBS} PRIVATE ole32 oleaut32)
|
||||||
elseif (XMRIG_OS_APPLE)
|
elseif (XMRIG_OS_APPLE)
|
||||||
list(APPEND SOURCES_OS
|
list(APPEND SOURCES_OS
|
||||||
src/App_unix.cpp
|
src/App_unix.cpp
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
if (WIN32)
|
if (WIN32 OR CMAKE_SYSTEM_NAME MATCHES "MSYS")
|
||||||
set(XMRIG_OS_WIN ON)
|
set(XMRIG_OS_WIN ON)
|
||||||
elseif (APPLE)
|
elseif (APPLE)
|
||||||
set(XMRIG_OS_APPLE ON)
|
set(XMRIG_OS_APPLE ON)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue