|
@@ -27,6 +27,9 @@ function(generate_qtprotobuf)
|
|
|
endif()
|
|
|
|
|
|
find_program(GO_EXECUTABLE "go")
|
|
|
+ if (GO_EXECUTABLE STREQUAL GO_EXECUTABLE-NOTFOUND)
|
|
|
+ message(FATAL_ERROR "Golang is mandatory dependency for QtProtobuf. Please install it and ensure that it's accessible by PATH environment variable")
|
|
|
+ endif()
|
|
|
foreach(PROTO_FILE IN LISTS generate_qtprotobuf_PROTO_FILES)
|
|
|
get_filename_component(BASE_DIR ${PROTO_FILE} DIRECTORY)
|
|
|
set(PROTO_INCLUDES -I"${BASE_DIR}" ${PROTO_INCUDES})
|