Add a hint for the GO path

Before this, cmake would not find the go binary in the docker image.
After this, cmake finds it.
This commit is contained in:
Andrew Noyes 2022-10-18 17:21:10 -07:00
parent c93e8c9da1
commit 666075cdf2
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ endif()
if(NOT BUILD_GO_BINDING OR NOT BUILD_C_BINDING)
set(WITH_GO_BINDING OFF)
else()
find_program(GO_EXECUTABLE go)
find_program(GO_EXECUTABLE go HINTS /usr/local/go/bin/)
# building the go binaries is currently not supported on Windows
if(GO_EXECUTABLE AND NOT WIN32 AND WITH_C_BINDING)
set(WITH_GO_BINDING ON)