Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(c/driver/postgresql): Use target_include_directories #1123

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

WillAyd
Copy link
Contributor

@WillAyd WillAyd commented Sep 28, 2023

No description provided.

@github-actions
Copy link

⚠️ Please follow the Conventional Commits format in CONTRIBUTING.md for PR titles.


foreach(LIB_TARGET ${ADBC_LIBRARIES})
target_compile_definitions(${LIB_TARGET} PRIVATE ADBC_EXPORTING)
target_include_directories(${LIB_TARGET} SYSTEM
PRIVATE ${REPOSITORY_ROOT}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want this to be PUBLIC but with that set you get:

CMake Error in driver/postgresql/CMakeLists.txt:
  Target "adbc_driver_postgresql_shared" INTERFACE_INCLUDE_DIRECTORIES
  property contains path:

    "/home/willayd/clones/arrow-adbc/c/vendor"

  which is prefixed in the source directory.


CMake Error in driver/postgresql/CMakeLists.txt:
  Target "adbc_driver_postgresql_shared" INTERFACE_INCLUDE_DIRECTORIES
  property contains path:

    "/home/willayd/clones/arrow-adbc/c/driver"

  which is prefixed in the source directory.


CMake Error in driver/postgresql/CMakeLists.txt:
  Target "adbc_driver_postgresql_static" INTERFACE_INCLUDE_DIRECTORIES
  property contains path:

    "/home/willayd/clones/arrow-adbc/c/vendor"

  which is prefixed in the source directory.


CMake Error in driver/postgresql/CMakeLists.txt:
  Target "adbc_driver_postgresql_static" INTERFACE_INCLUDE_DIRECTORIES
  property contains path:

    "/home/willayd/clones/arrow-adbc/c/driver"

  which is prefixed in the source directory.

I think there is more info here but didn't follow all the way through for this repo: arvidn/libtorrent#3101 (comment)

@WillAyd WillAyd changed the title clean(c/driver/postgresql): Use target_include_directories chore(c/driver/postgresql): Use target_include_directories Sep 28, 2023
Copy link
Member

@lidavidm lidavidm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh nice, you figured this out. Thanks!

@lidavidm lidavidm merged commit ed3ecbe into apache:main Sep 28, 2023
61 of 65 checks passed
@lidavidm lidavidm added this to the ADBC Libraries 0.8.0 milestone Sep 28, 2023
@WillAyd WillAyd deleted the cmake-cleanups branch September 28, 2023 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants