Skip to content

Commit d84cf4a

Browse files
authored
apacheGH-33876: [C++][Windows] Use different .pc path for each config (apache#33907)
### What changes are included in this PR? Use different .pc path for each CMake configuration because .pc content may be different with different CMake configuration. ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * Closes: apache#33876 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
1 parent 4f1d255 commit d84cf4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/cmake_modules/BuildUtils.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,9 +947,9 @@ function(ARROW_ADD_PKG_CONFIG MODULE)
947947
configure_file(${MODULE}.pc.in "${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.pc.generate.in"
948948
@ONLY)
949949
file(GENERATE
950-
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.pc"
950+
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/${MODULE}.pc"
951951
INPUT "${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.pc.generate.in")
952-
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.pc"
952+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/${MODULE}.pc"
953953
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/")
954954
endfunction()
955955

0 commit comments

Comments
 (0)