-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Use GNUInstallDirs CMAKE_INSTALL_INCLUDEDIR path for headers installation #10470
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
Conversation
…ation Signed-off-by: Luc Schrijvers <begasus@gmail.com>
Signed-off-by: Luc Schrijvers <begasus@gmail.com>
|
@ronald-cron-arm could you check if this is OK? If so I could copy this to the other PR's. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some formatting issue with the change log. Otherwise while working on CMAKE_INSTALL_INCLUDEDIR, isn't it the case that in library/CMakeLists.txt line 350 and following we should have:
target_include_directories(${target}
PUBLIC $<BUILD_INTERFACE:${MBEDTLS_DIR}/include/>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
PRIVATE ${MBEDTLS_DIR}/library/
# Needed to include psa_crypto_driver_wrappers.h
${CMAKE_CURRENT_BINARY_DIR})
instead of
target_include_directories(${target}
PUBLIC $<BUILD_INTERFACE:${MBEDTLS_DIR}/include/>
$<INSTALL_INTERFACE:include/>
PRIVATE ${MBEDTLS_DIR}/library/
# Needed to include psa_crypto_driver_wrappers.h
${CMAKE_CURRENT_BINARY_DIR})
?
Co-authored-by: Ronald Cron <ronald.cron@arm.com> Signed-off-by: Schrijvers Luc <begasus@gmail.com>
I guess this should be it? |
63dff2b to
8bdde25
Compare
Signed-off-by: Luc Schrijvers <begasus@gmail.com>
ronald-cron-arm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
minosgalanakis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Using a hardcoded path like "include" for headers path doesn't follow GNUInstallDirs method.
PR checklist