mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-31 18:19:35 +08:00
Fix MacOS go build
See https://forums.foundationdb.org/t/macos-build-finds-wrong-fdb-c-h-for-go-bindings-patch-included/3929 for details
This commit is contained in:
parent
30d4f07395
commit
f52cffd81b
@ -42,7 +42,7 @@ file(MAKE_DIRECTORY ${GOPATH}
|
||||
set(go_options_file ${GO_DEST}/src/fdb/generated.go)
|
||||
|
||||
set(go_env GOPATH=${GOPATH}
|
||||
C_INCLUDE_PATH=${CMAKE_BINARY_DIR}/bindings/c/foundationdb:${CMAKE_SOURCE_DIR}/bindings/c
|
||||
CGO_CFLAGS="-I${CMAKE_BINARY_DIR}/bindings/c/foundationdb;-I${CMAKE_SOURCE_DIR}/bindings/c"
|
||||
CGO_LDFLAGS=-L${CMAKE_BINARY_DIR}/lib
|
||||
GO111MODULE=auto)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user