Hi,
-DARROW_OUTPUT_NAME_SUFFIX=d with the following patch will
work:
----
diff --git a/cpp/cmake_modules/BuildUtils.cmake
b/cpp/cmake_modules/BuildUtils.cmake
index 90839cb446..d1f641a953 100644
--- a/cpp/cmake_modules/BuildUtils.cmake
+++ b/cpp/cmake_modules/BuildUtils.cmake
@@ -377,7 +377,7 @@ function(ADD_ARROW_LIB LIB_NAME)
RUNTIME_OUTPUT_DIRECTORY "${OUTPUT_PATH}"
PDB_OUTPUT_DIRECTORY "${OUTPUT_PATH}"
LINK_FLAGS "${ARG_SHARED_LINK_FLAGS}"
- OUTPUT_NAME ${LIB_NAME}
+ OUTPUT_NAME
"${LIB_NAME}${ARROW_OUTPUT_NAME_SUFFIX}"
VERSION "${ARROW_FULL_SO_VERSION}"
SOVERSION "${ARROW_SO_VERSION}")
@@ -466,7 +466,7 @@ function(ADD_ARROW_LIB LIB_NAME)
set_target_properties(${LIB_NAME}_static
PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${OUTPUT_PATH}"
- OUTPUT_NAME ${LIB_NAME_STATIC})
+ OUTPUT_NAME
"${LIB_NAME_STATIC}${ARROW_OUTPUT_NAME_SUFFIX}")
if(ARG_STATIC_INSTALL_INTERFACE_LIBS)
target_link_libraries(${LIB_NAME}_static
----
The Felipe's different CMAKE_INSTALL_PREFIX suggestion will
also work.
If you still needs different DLL name approach, could you
open a new issue and open a pull request on
https://github.com/apache/arrow ?
Thanks,
--
kou
In <CAE=8kmkGwBKOtJW6wc=0sb6f97u_9clkjzcjkv5zkj-2pb3...@mail.gmail.com>
"C++ building question" on Fri, 22 Nov 2024 10:52:58 -0800,
Carl Godkin <[email protected]> wrote:
> Hi,
>
> I'm using the arrow library with parquet version 18.0.0 on Windows and
> Linux from C++.
>
> For development purposes, I build both a debug and release version of the
> libraries. However, I noticed that (e.g., on Windows) the arrow and
> parquet libraries are named arrow.lib/.dll and parquet.lib/.dll after both
> builds.
>
> I'd like to specify a different name for the debug builds and don't find a
> cmake option for this.
>
> Is there a good way to do this?
>
> Thanks a lot,
>
> carl