You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by li...@apache.org on 2023/09/28 12:51:53 UTC
[arrow-adbc] branch main updated: chore(c/driver/postgresql): Use target_include_directories (#1123)
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 ed3ecbe3 chore(c/driver/postgresql): Use target_include_directories (#1123)
ed3ecbe3 is described below
commit ed3ecbe35af7c72acbf4d742efdb853e800751b8
Author: William Ayd <wi...@icloud.com>
AuthorDate: Thu Sep 28 08:51:48 2023 -0400
chore(c/driver/postgresql): Use target_include_directories (#1123)
---
c/driver/postgresql/CMakeLists.txt | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/c/driver/postgresql/CMakeLists.txt b/c/driver/postgresql/CMakeLists.txt
index 6deae291..bd1a68e2 100644
--- a/c/driver/postgresql/CMakeLists.txt
+++ b/c/driver/postgresql/CMakeLists.txt
@@ -51,14 +51,15 @@ add_arrow_lib(adbc_driver_postgresql
adbc_driver_common
nanoarrow
${LIBPQ_STATIC_LIBRARIES})
-include_directories(SYSTEM ${REPOSITORY_ROOT})
-include_directories(SYSTEM ${REPOSITORY_ROOT}/c/)
-include_directories(SYSTEM ${LIBPQ_INCLUDE_DIRS})
-include_directories(SYSTEM ${REPOSITORY_ROOT}/c/vendor)
-include_directories(SYSTEM ${REPOSITORY_ROOT}/c/driver)
foreach(LIB_TARGET ${ADBC_LIBRARIES})
target_compile_definitions(${LIB_TARGET} PRIVATE ADBC_EXPORTING)
+ target_include_directories(${LIB_TARGET} SYSTEM
+ PRIVATE ${REPOSITORY_ROOT}
+ ${REPOSITORY_ROOT}/c/
+ ${LIBPQ_INCLUDE_DIRS}
+ ${REPOSITORY_ROOT}/c/vendor
+ ${REPOSITORY_ROOT}/c/driver)
endforeach()
if(ADBC_TEST_LINKAGE STREQUAL "shared")
@@ -83,5 +84,11 @@ if(ADBC_BUILD_TESTS)
nanoarrow
${TEST_LINK_LIBS})
target_compile_features(adbc-driver-postgresql-test PRIVATE cxx_std_17)
+ target_include_directories(adbc-driver-postgresql-test SYSTEM
+ PRIVATE ${REPOSITORY_ROOT}
+ ${REPOSITORY_ROOT}/c/
+ ${LIBPQ_INCLUDE_DIRS}
+ ${REPOSITORY_ROOT}/c/vendor
+ ${REPOSITORY_ROOT}/c/driver)
adbc_configure_target(adbc-driver-postgresql-test)
endif()