Lines 5-10
if(INSTALL_MBEDTLS_HEADERS)
Link Here
|
5 |
file(GLOB headers "mbedtls/*.h") |
5 |
file(GLOB headers "mbedtls/*.h") |
6 |
file(GLOB psa_headers "psa/*.h") |
6 |
file(GLOB psa_headers "psa/*.h") |
7 |
|
7 |
|
|
|
8 |
if(USE_CRYPTO_SUBMODULE) |
9 |
# Don't overwrite mbedtls's header files! |
10 |
# config.h is supposed to be automatically checked for compatibility |
11 |
# in automatic builds, while the other files should not just be |
12 |
# compatible, but also identical in theory. |
13 |
# Practically, we don't check that in crypto but just assume that the |
14 |
# submodule configuration is sane and trust tls's headers. |
15 |
list(REMOVE_ITEM headers "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/compat-1.3.h" |
16 |
"${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/config.h" |
17 |
"${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/error.h" |
18 |
"${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/version.h") |
19 |
endif(USE_CRYPTO_SUBMODULE) |
20 |
|
8 |
install(FILES ${headers} |
21 |
install(FILES ${headers} |
9 |
DESTINATION include/mbedtls |
22 |
DESTINATION include/mbedtls |
10 |
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) |
23 |
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) |