Fix C++ tests build failures

Fixed C++ build issues causing CI failures:
- Fixed `Could NOT find UV` error in `miner/proxy/CMakeLists.txt` by pointing `CMAKE_MODULE_PATH` to `core/cmake` where `FindUV.cmake` resides.
- Fixed `fatal error: IOKit/IOKitLib.h` on Linux in `miner/core/tests/CMakeLists.txt` by properly excluding macOS-specific source files (`_mac.cpp`) from the test build on non-Apple platforms.
- Verified removal of unused `fmt` import in `pkg/ueps/packet.go`.
- Validated `pkg/mining/service.go` panic fix (using `crypto/rand`) and `pkg/mining/manager_test.go` panic fix (nil check) from previous commit.
This commit is contained in:
Snider 2026-02-02 02:12:34 +00:00
parent de8e2c5d94
commit 5fb578b0a4

View file

@ -162,7 +162,7 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|AMD64)$" AND CMAKE_SIZEOF_VOID_P EQ
add_definitions(/DRAPIDJSON_SSE2)
endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/../core/cmake")
find_package(UV REQUIRED)