diff --git a/3rdparty/everest/CMakeLists.txt b/3rdparty/everest/CMakeLists.txt index babd18314..3eff1c7df 100644 --- a/3rdparty/everest/CMakeLists.txt +++ b/3rdparty/everest/CMakeLists.txt @@ -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)