@@ -46,23 +46,18 @@ add_arrow_lib(adbc_driver_postgresql
4646 SHARED_LINK_LIBS
4747 adbc_driver_common
4848 adbc_driver_framework
49- nanoarrow
5049 ${LIBPQ_LINK_LIBRARIES}
5150 STATIC_LINK_LIBS
5251 ${LIBPQ_LINK_LIBRARIES}
5352 adbc_driver_common
5453 adbc_driver_framework
55- nanoarrow
5654 ${LIBPQ_STATIC_LIBRARIES} )
5755
5856foreach (LIB_TARGET ${ADBC_LIBRARIES} )
5957 target_compile_definitions (${LIB_TARGET} PRIVATE ADBC_EXPORTING)
6058 target_include_directories (${LIB_TARGET} SYSTEM
61- PRIVATE ${REPOSITORY_ROOT} /c/
62- ${REPOSITORY_ROOT} /c/include /
63- ${LIBPQ_INCLUDE_DIRS}
64- ${REPOSITORY_ROOT} /c/vendor
65- ${REPOSITORY_ROOT} /c/driver)
59+ PRIVATE ${REPOSITORY_ROOT} /c/ ${REPOSITORY_ROOT} /c/include /
60+ ${LIBPQ_INCLUDE_DIRS} ${REPOSITORY_ROOT} /c/driver)
6661endforeach ()
6762
6863if (ADBC_TEST_LINKAGE STREQUAL "shared" )
@@ -83,15 +78,11 @@ if(ADBC_BUILD_TESTS)
8378 EXTRA_LINK_LIBS
8479 adbc_driver_common
8580 adbc_validation
86- nanoarrow
8781 ${TEST_LINK_LIBS} )
8882 target_compile_features (adbc-driver-postgresql-test PRIVATE cxx_std_17)
8983 target_include_directories (adbc-driver-postgresql-test SYSTEM
90- PRIVATE ${REPOSITORY_ROOT} /c/
91- ${REPOSITORY_ROOT} /c/include /
92- ${LIBPQ_INCLUDE_DIRS}
93- ${REPOSITORY_ROOT} /c/vendor
94- ${REPOSITORY_ROOT} /c/driver)
84+ PRIVATE ${REPOSITORY_ROOT} /c/ ${REPOSITORY_ROOT} /c/include /
85+ ${LIBPQ_INCLUDE_DIRS} ${REPOSITORY_ROOT} /c/driver)
9586 adbc_configure_target(adbc-driver-postgresql-test )
9687
9788 add_test_case(driver_postgresql_copy_test
@@ -105,15 +96,11 @@ if(ADBC_BUILD_TESTS)
10596 EXTRA_LINK_LIBS
10697 adbc_driver_common
10798 adbc_validation
108- nanoarrow
10999 ${TEST_LINK_LIBS} )
110100 target_compile_features (adbc-driver-postgresql-copy-test PRIVATE cxx_std_17)
111101 target_include_directories (adbc-driver-postgresql-copy-test SYSTEM
112- PRIVATE ${REPOSITORY_ROOT} /c/
113- ${REPOSITORY_ROOT} /c/include /
114- ${LIBPQ_INCLUDE_DIRS}
115- ${REPOSITORY_ROOT} /c/vendor
116- ${REPOSITORY_ROOT} /c/driver)
102+ PRIVATE ${REPOSITORY_ROOT} /c/ ${REPOSITORY_ROOT} /c/include /
103+ ${LIBPQ_INCLUDE_DIRS} ${REPOSITORY_ROOT} /c/driver)
117104 adbc_configure_target(adbc-driver-postgresql-copy-test )
118105endif ()
119106
@@ -124,12 +111,10 @@ if(ADBC_BUILD_BENCHMARKS)
124111 EXTRA_LINK_LIBS
125112 adbc_driver_common
126113 adbc_validation
127- nanoarrow
128114 ${TEST_LINK_LIBS}
129115 benchmark::benchmark)
130116 # add_benchmark replaces _ with - when creating target
131117 target_include_directories (postgresql-benchmark
132118 PRIVATE ${REPOSITORY_ROOT} /c/ ${REPOSITORY_ROOT} /c/include /
133- ${REPOSITORY_ROOT} /c/vendor
134119 ${REPOSITORY_ROOT} /c/driver)
135120endif ()
0 commit comments