Added support for getting go dependencies before install source
This commit is contained in:
parent
a3598a7616
commit
ed8e5bc64f
|
@ -99,6 +99,8 @@ function(build_go_package)
|
|||
endif()
|
||||
add_custom_command(OUTPUT ${outfile}
|
||||
COMMAND ${CMAKE_COMMAND} -E env ${go_env}
|
||||
${GO_EXECUTABLE} get ${GO_IMPORT_PATH}/${BGP_PATH} &&
|
||||
${CMAKE_COMMAND} -E env ${go_env}
|
||||
${GO_EXECUTABLE} install ${GO_IMPORT_PATH}/${BGP_PATH}
|
||||
DEPENDS ${fdb_options_file}
|
||||
COMMENT "Building ${BGP_NAME}")
|
||||
|
|
Loading…
Reference in New Issue