File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1+ Bugfix
2+ * CMake now installs headers to `CMAKE_INSTALL_INCLUDEDIR` instead of the
3+ hard-coded `include` directory.
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ if(INSTALL_MBEDTLS_HEADERS)
55 file (GLOB headers "mbedtls/*.h" )
66
77 install (FILES ${headers}
8- DESTINATION include /mbedtls
8+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /mbedtls
99 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
1010
1111 file (GLOB private_headers "mbedtls/private/*.h" )
1212
1313 install (FILES ${private_headers}
14- DESTINATION include /mbedtls/private
14+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /mbedtls/private
1515 PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
1616endif (INSTALL_MBEDTLS_HEADERS)
1717
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ foreach(target IN LISTS target_libraries)
241241 PUBLIC $<BUILD_INTERFACE:${MBEDTLS_DIR} /include />
242242 $<BUILD_INTERFACE:${MBEDTLS_DIR} /tf-psa-crypto/include />
243243 $<BUILD_INTERFACE:${MBEDTLS_DIR} /tf-psa-crypto/drivers/builtin/include />
244- $<INSTALL_INTERFACE:include / >
244+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR} >
245245 PRIVATE ${MBEDTLS_DIR} /library/
246246 ${MBEDTLS_DIR} /tf-psa-crypto/core
247247 ${MBEDTLS_DIR} /tf-psa-crypto/drivers/builtin/src
You can’t perform that action at this time.
0 commit comments