GoInstall (TARGET vbmap PACKAGE vbmap
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}"
  INSTALL_PATH bin)

GoInstall (TARGET ns_gozip PACKAGE gozip
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}"
  INSTALL_PATH bin)

GoInstall (TARGET ns_goport PACKAGE goport
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}"
  INSTALL_PATH bin)

GoInstall (TARGET ns_generate_cert PACKAGE generate_cert
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}"
  INSTALL_PATH bin)

GoInstall (TARGET ns_godu PACKAGE godu
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}"
  INSTALL_PATH bin/priv)

GoInstall (TARGET ns_minify PACKAGE minify
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}" "${GODEPSDIR}"
  INSTALL_PATH bin/priv)

GoInstall (TARGET ns_gosecrets PACKAGE gosecrets
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}" "${GODEPSDIR}"
  INSTALL_PATH bin)

ADD_CUSTOM_TARGET (gocode-clean
  COMMAND "${CMAKE_COMMAND}" -E remove_directory "${CMAKE_CURRENT_SOURCE_DIR}/bin")
ADD_DEPENDENCIES (ns_realclean gocode-clean)

GoInstall (TARGET vbmap PACKAGE vbmap
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}"
  GOVERSION 1.7.3
  INSTALL_PATH bin)

GoInstall (TARGET ns_gozip PACKAGE gozip
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}"
  GOVERSION 1.7.3
  INSTALL_PATH bin)

GoInstall (TARGET ns_goport PACKAGE goport
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}"
  GOVERSION 1.7.3
  INSTALL_PATH bin)

GoInstall (TARGET ns_generate_cert PACKAGE generate_cert
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}"
  GOVERSION 1.7.3
  INSTALL_PATH bin)

GoInstall (TARGET ns_godu PACKAGE godu
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}"
  GOVERSION 1.7.3
  INSTALL_PATH bin/priv)

GoInstall (TARGET ns_minify PACKAGE minify
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}" "${GODEPSDIR}"
  GOVERSION 1.7.3
  INSTALL_PATH bin/priv)

GoInstall (TARGET ns_gosecrets PACKAGE gosecrets
  GOPATH "${CMAKE_CURRENT_SOURCE_DIR}" "${GODEPSDIR}"
  GOVERSION 1.7.3
  INSTALL_PATH bin)

ADD_CUSTOM_TARGET (gocode-clean
  COMMAND "${CMAKE_COMMAND}" -E remove_directory "${CMAKE_CURRENT_SOURCE_DIR}/bin")
ADD_DEPENDENCIES (ns_realclean gocode-clean)

Use go version 1.7.3 explicitly
MB-23758: Use go version 1.7.3 explicitly

Change-Id: Ic368fe46bd4435232389dd19808d21293d2c2771
Reviewed-on: http://review.couchbase.org/76364
Reviewed-by: Dave Finlay <7b10a9ed9f70e64c30b07607a671ae61c33f14c8@couchbase.com>
Tested-by: Dave Finlay <7b10a9ed9f70e64c30b07607a671ae61c33f14c8@couchbase.com>
