File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -81,17 +81,22 @@ set(LDFLAGS
8181 ${_ALLTARGETS_LIBRARIES}
8282)
8383
84+ if (NOT HAVE_GETOPT_C)
85+ set (EXT_DEPS gperf_ext)
86+ endif ()
87+ set (EXT_DEPS ${EXT_DEPS} portaudio_ext)
88+
8489add_executable (run_assistant_text ${GOOGLEAPIS_CCS} ${CORE_SRCS} ${ASSISTANT_TEXT_SRCS} )
8590target_link_libraries (run_assistant_text ${LDFLAGS} )
86- add_dependencies (run_assistant_text portaudio_ext )
91+ add_dependencies (run_assistant_text ${EXT_DEPS} )
8792
8893add_executable (run_assistant_file ${GOOGLEAPIS_CCS} ${CORE_SRCS} ${AUDIO_INPUT_FILE_SRCS} ${ASSISTANT_FILE_SRCS} )
8994target_link_libraries (run_assistant_file ${LDFLAGS} )
90- add_dependencies (run_assistant_file portaudio_ext )
95+ add_dependencies (run_assistant_file ${EXT_DEPS} )
9196
9297add_executable (run_assistant_audio ${GOOGLEAPIS_CCS} ${CORE_SRCS} ${AUDIO_SRCS} ${ASSISTANT_AUDIO_SRCS} )
9398target_link_libraries (run_assistant_audio ${LDFLAGS} ${_PORTAUDIO_LIB} )
94- add_dependencies (run_assistant_audio portaudio_ext )
99+ add_dependencies (run_assistant_audio ${EXT_DEPS} )
95100
96101if (APPLE )
97102 target_link_libraries (run_assistant_text "-framework CoreFoundation" )
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ build_script:
9898 -DBUILD_NUMBER=%APPVEYOR_BUILD_NUMBER% %CMAKE_ARGS%
9999 ..
100100
101+ - set CL=/MP
101102 - cmake --build . --config %CONFIGURATION% --target all
102103
103104after_build :
Original file line number Diff line number Diff line change @@ -189,6 +189,6 @@ link_directories(
189189 ${_SSL_LIBRARIES_DIRS}
190190)
191191
192- set (Protobuf_PROTOC_EXECUTABLE ${CMAKE_STAGING_PREFIX} /bin/protoc)
192+ set (Protobuf_PROTOC_EXECUTABLE ${CMAKE_STAGING_PREFIX} /bin/protoc${CMAKE_EXECUTABLE_SUFFIX} )
193193
194194set (PROTO_BASE_PATH ${CMAKE_CURRENT_BINARY_DIR} /grpc_ext-prefix /src/grpc_ext/third_party/googleapis)
Original file line number Diff line number Diff line change 11# Set grpc plugin
22if (NOT _gRPC_CPP_PLUGIN)
3- set (_gRPC_CPP_PLUGIN ${CMAKE_STAGING_PREFIX} /bin/grpc_cpp_plugin)
3+ set (_gRPC_CPP_PLUGIN ${CMAKE_STAGING_PREFIX} /bin/grpc_cpp_plugin${CMAKE_EXECUTABLE_SUFFIX} )
44endif ()
55
66if (NOT _gRPC_PROTO_GENS_DIR)
You can’t perform that action at this time.
0 commit comments