File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -54,17 +54,20 @@ set(GO_OUT libipfs-${GOOS}-${GOARCH}.a)
5454set (GO_HEADER libipfs.h)
5555
5656set (CROSS_CC "" )
57- if (GOARCH STREQUAL "arm64" )
58- set (CROSS_CC "CC=aarch64-linux-gnu-gcc" )
59- endif ()
60-
61- if (GOARCH STREQUAL "riscv64" )
62- set (CROSS_CC "CC=riscv64-linux-gnu-gcc" )
63- endif ()
6457
65- if (GOOS STREQUAL "windows" AND CMAKE_C_PLATFORM_ID STREQUAL "MinGW" )
66- set (CROSS_CC "CC=x86_64-w64-mingw32-gcc-posix" )
67- endif ()
58+ if (DEPENDS )
59+ if (GOARCH STREQUAL "arm64" )
60+ set (CROSS_CC "CC=aarch64-linux-gnu-gcc" )
61+ endif ()
62+
63+ if (GOARCH STREQUAL "riscv64" )
64+ set (CROSS_CC "CC=riscv64-linux-gnu-gcc" )
65+ endif ()
66+
67+ if (GOOS STREQUAL "windows" AND CMAKE_C_PLATFORM_ID STREQUAL "MinGW" )
68+ set (CROSS_CC "CC=x86_64-w64-mingw32-gcc-posix" )
69+ endif ()
70+ endif ()
6871
6972if (APPLE )
7073 if (DEFINED scala_BINARY_DIR AND NOT "${scala_BINARY_DIR} " STREQUAL "" )
You can’t perform that action at this time.
0 commit comments