Skip to content

Commit e18e389

Browse files
committed
windows cleanup
1 parent 6ef46eb commit e18e389

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
8489
add_executable(run_assistant_text ${GOOGLEAPIS_CCS} ${CORE_SRCS} ${ASSISTANT_TEXT_SRCS})
8590
target_link_libraries(run_assistant_text ${LDFLAGS})
86-
add_dependencies(run_assistant_text portaudio_ext)
91+
add_dependencies(run_assistant_text ${EXT_DEPS})
8792

8893
add_executable(run_assistant_file ${GOOGLEAPIS_CCS} ${CORE_SRCS} ${AUDIO_INPUT_FILE_SRCS} ${ASSISTANT_FILE_SRCS})
8994
target_link_libraries(run_assistant_file ${LDFLAGS})
90-
add_dependencies(run_assistant_file portaudio_ext)
95+
add_dependencies(run_assistant_file ${EXT_DEPS})
9196

9297
add_executable(run_assistant_audio ${GOOGLEAPIS_CCS} ${CORE_SRCS} ${AUDIO_SRCS} ${ASSISTANT_AUDIO_SRCS})
9398
target_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

96101
if(APPLE)
97102
target_link_libraries(run_assistant_text "-framework CoreFoundation")

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

103104
after_build:

cmake/build_dependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

194194
set(PROTO_BASE_PATH ${CMAKE_CURRENT_BINARY_DIR}/grpc_ext-prefix/src/grpc_ext/third_party/googleapis)

cmake/googleapis.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Set grpc plugin
22
if(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})
44
endif()
55

66
if(NOT _gRPC_PROTO_GENS_DIR)

0 commit comments

Comments
 (0)