Skip to content

cmake: use INCLUDE_DIRECTORIES prop to specify local header dirs #16993

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

Closed
wants to merge 1 commit into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Apr 8, 2025

To use more modern cmake, and make it somewhat more obvious where these
header directories should apply.

Also move setting the directory property before defining targets,
to make them inherit this directory property.

Ref: https://cmake.org/cmake/help/latest/command/include_directories.html
Ref: https://cmake.org/cmake/help/latest/prop_dir/INCLUDE_DIRECTORIES.html

Follow-up to 45f7cb7 #16238

@vszakats vszakats marked this pull request as draft April 8, 2025 09:08
@vszakats vszakats marked this pull request as ready for review April 8, 2025 09:51
@vszakats vszakats closed this in 304b01b Apr 8, 2025
@vszakats vszakats deleted the cm-dirprop-more branch April 8, 2025 19:01
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
To use more modern cmake, and make it somewhat more obvious where these
header directories should apply.

Also move setting the directory property _before_ defining targets,
to make them inherit this directory property.

Ref: https://cmake.org/cmake/help/latest/command/include_directories.html
Ref: https://cmake.org/cmake/help/latest/prop_dir/INCLUDE_DIRECTORIES.html

Follow-up to 45f7cb7 curl#16238

Closes curl#16993
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant