3rdparty: Fix Everest header installation
@@ -16,11 +16,11 @@ if(${result} EQUAL 0)
if(INSTALL_MBEDTLS_HEADERS)
- file(GLOB_RECURSE headers "${CMAKE_CURRENT_SOURCE_DIR}/include/everest/*.h")
-
- install(FILES ${headers}
- DESTINATION include/everest
- PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
+ install(DIRECTORY include/everest
+ DESTINATION include
+ FILE_PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
+ DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
+ FILES_MATCHING PATTERN "*.h")
endif(INSTALL_MBEDTLS_HEADERS)
