This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 09f114fd0 build(c): fix typo in static build causing error (#2505)
09f114fd0 is described below
commit 09f114fd0327c9bec0bf7061d5b00d9512f331dc
Author: Matthias Kuhn <[email protected]>
AuthorDate: Mon Feb 10 02:50:03 2025 +0100
build(c): fix typo in static build causing error (#2505)
```
CMake Warning (dev) at cmake_modules/AdbcDefines.cmake:21 (enable_language):
project() should be called prior to this enable_language() call.
Call Stack (most recent call first):
CMakeLists.txt:21 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- {fmt} version: 10.2.2
-- Build type: Release
CMake Error at cmake_modules/BuildUtils.cmake:313 (set_property):
set_property could not find TARGET adbc_driver_manager_shared. Perhaps it
has not yet been created.
Call Stack (most recent call first):
driver_manager/CMakeLists.txt:18 (add_arrow_lib)
CMake Error at cmake_modules/BuildUtils.cmake:313 (set_property):
set_property could not find TARGET adbc_driver_postgresql_shared. Perhaps
it has not yet been created.
Call Stack (most recent call first):
driver/postgresql/CMakeLists.txt:29 (add_arrow_lib)
CMake Error at cmake_modules/BuildUtils.cmake:313 (set_property):
set_property could not find TARGET adbc_driver_sqlite_shared. Perhaps it
has not yet been created.
Call Stack (most recent call first):
driver/sqlite/CMakeLists.txt:39 (add_arrow_lib)
```
---
c/cmake_modules/BuildUtils.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/c/cmake_modules/BuildUtils.cmake b/c/cmake_modules/BuildUtils.cmake
index 88209ac5e..aefff1d5e 100644
--- a/c/cmake_modules/BuildUtils.cmake
+++ b/c/cmake_modules/BuildUtils.cmake
@@ -310,7 +310,7 @@ function(ADD_ARROW_LIB LIB_NAME)
if(BUILD_STATIC)
add_library(${LIB_NAME}_static STATIC ${LIB_DEPS})
target_compile_features(${LIB_NAME}_static PRIVATE cxx_std_11)
- set_property(TARGET ${LIB_NAME}_shared PROPERTY CXX_STANDARD_REQUIRED ON)
+ set_property(TARGET ${LIB_NAME}_static PROPERTY CXX_STANDARD_REQUIRED ON)
adbc_configure_target(${LIB_NAME}_static)
if(EXTRA_DEPS)
add_dependencies(${LIB_NAME}_static ${EXTRA_DEPS})