diff --git a/c_glib/arrow-cuda-glib/meson.build b/c_glib/arrow-cuda-glib/meson.build index 47bed70f03b60..36730dec6c4b7 100644 --- a/c_glib/arrow-cuda-glib/meson.build +++ b/c_glib/arrow-cuda-glib/meson.build @@ -58,14 +58,15 @@ libarrow_cuda_glib = library('arrow-cuda-glib', arrow_cuda_glib = declare_dependency(link_with: libarrow_cuda_glib, include_directories: base_include_directories, dependencies: dependencies) - -pkgconfig.generate(libarrow_cuda_glib, - description: 'C API for Apache Arrow CUDA based on GLib', - filebase: 'arrow-cuda-glib', - name: 'Apache Arrow CUDA GLib', - requires: ['arrow-glib', 'arrow-cuda'], - variables: pkgconfig_variables, - version: version) +if target_machine.system() != 'windows' + pkgconfig.generate(libarrow_cuda_glib, + description: 'C API for Apache Arrow CUDA based on GLib', + filebase: 'arrow-cuda-glib', + name: 'Apache Arrow CUDA GLib', + requires: ['arrow-glib', 'arrow-cuda'], + variables: pkgconfig_variables, + version: version) +endif if have_gi gir_dependencies = [ diff --git a/cpp/src/arrow/gpu/CMakeLists.txt b/cpp/src/arrow/gpu/CMakeLists.txt index 48216034375bd..7f8650c7dc824 100644 --- a/cpp/src/arrow/gpu/CMakeLists.txt +++ b/cpp/src/arrow/gpu/CMakeLists.txt @@ -47,11 +47,14 @@ endif() set(ARROW_CUDA_SRCS cuda_arrow_ipc.cc cuda_context.cc cuda_internal.cc cuda_memory.cc) +set(ARROW_CUDA_PKG_CONFIG_NAME_ARGS) +if(NOT WINDOWS) + list(APPEND ARROW_CUDA_PKG_CONFIG_NAME_ARGS PKG_CONFIG_NAME arrow-cuda) +endif() add_arrow_lib(arrow_cuda CMAKE_PACKAGE_NAME ArrowCUDA - PKG_CONFIG_NAME - arrow-cuda + ${ARROW_CUDA_PKG_CONFIG_NAME_ARGS} SOURCES ${ARROW_CUDA_SRCS} OUTPUTS